git: b36460e5ec46 - main - LinuxKPI: skbuff: implement napi_build_skb()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 17 Jul 2026 15:49:23 UTC
The branch main has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=b36460e5ec4659d0fa14b35c9342c5a154b3db7d
commit b36460e5ec4659d0fa14b35c9342c5a154b3db7d
Author: Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2026-02-03 22:13:24 +0000
Commit: Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2026-07-17 15:48:53 +0000
LinuxKPI: skbuff: implement napi_build_skb()
Implement napi_build_skb() around linuxkpi_build_skb().
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
---
sys/compat/linuxkpi/common/include/linux/skbuff.h | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/sys/compat/linuxkpi/common/include/linux/skbuff.h b/sys/compat/linuxkpi/common/include/linux/skbuff.h
index ca8c7320a37b..a0724803e732 100644
--- a/sys/compat/linuxkpi/common/include/linux/skbuff.h
+++ b/sys/compat/linuxkpi/common/include/linux/skbuff.h
@@ -1145,9 +1145,13 @@ napi_consume_skb(struct sk_buff *skb, int budget)
static inline struct sk_buff *
napi_build_skb(void *data, size_t len)
{
+ struct sk_buff *skb;
- SKB_TODO();
- return (NULL);
+ SKB_IMPROVE("len and all needs fixing likely");
+
+ skb = linuxkpi_build_skb(data, len);
+ SKB_TRACE(skb);
+ return (skb);
}
static inline uint32_t