git: 846df8bc79c6 - stable/15 - cxgbe tom: Export alloc_raw_mbuf for use in other TOE drivers
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 03 Oct 2025 00:04:15 UTC
The branch stable/15 has been updated by np:
URL: https://cgit.FreeBSD.org/src/commit/?id=846df8bc79c6313f76282159a53af97111f08cc3
commit 846df8bc79c6313f76282159a53af97111f08cc3
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2025-09-11 21:10:40 +0000
Commit: Navdeep Parhar <np@FreeBSD.org>
CommitDate: 2025-10-02 22:09:03 +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 2fee8fa91dac..da0753296532 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 *);