git: 507dc6c1c810 - stable/14 - cxgbe tom: Export alloc_raw_mbuf for use in other TOE drivers

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Thu, 29 Jan 2026 15:40:02 UTC
The branch stable/14 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=507dc6c1c810c6cd038a11291571f3aabfcc6731

commit 507dc6c1c810c6cd038a11291571f3aabfcc6731
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2025-09-11 21:10:40 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2026-01-29 15:27:41 +0000

    cxgbe tom: Export alloc_raw_mbuf for use in other TOE drivers
    
    Reviewed by:    np
    Sponsored by:   Chelsio Communications
    Differential Revision:  https://reviews.freebsd.org/D47762
    
    (cherry picked from commit a7aab22d2bf36191baa646fc136ca020dad209f3)
---
 sys/dev/cxgbe/tom/t4_ddp.c | 2 +-
 sys/dev/cxgbe/tom/t4_tom.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/sys/dev/cxgbe/tom/t4_ddp.c b/sys/dev/cxgbe/tom/t4_ddp.c
index 7f0e9c46d2bf..83433db05a27 100644
--- a/sys/dev/cxgbe/tom/t4_ddp.c
+++ b/sys/dev/cxgbe/tom/t4_ddp.c
@@ -1785,7 +1785,7 @@ t4_write_page_pods_for_rcvbuf(struct adapter *sc, struct sge_wrq *wrq, int tid,
 	return (0);
 }
 
-static struct mbuf *
+struct mbuf *
 alloc_raw_wr_mbuf(int len)
 {
 	struct mbuf *m;
diff --git a/sys/dev/cxgbe/tom/t4_tom.h b/sys/dev/cxgbe/tom/t4_tom.h
index 3dfa24a33f85..af6d37931b2e 100644
--- a/sys/dev/cxgbe/tom/t4_tom.h
+++ b/sys/dev/cxgbe/tom/t4_tom.h
@@ -556,6 +556,7 @@ int t4_aio_queue_ddp(struct socket *, struct kaiocb *);
 int t4_enable_ddp_rcv(struct socket *, struct toepcb *);
 void t4_ddp_mod_load(void);
 void t4_ddp_mod_unload(void);
+struct mbuf *alloc_raw_wr_mbuf(int);
 void ddp_assert_empty(struct toepcb *);
 void ddp_uninit_toep(struct toepcb *);
 void ddp_queue_toep(struct toepcb *);