git: 271a6593acf3 - stable/15 - LinuxKPI: skbuff: implement napi_build_skb()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 27 Jul 2026 00:10:37 UTC
The branch stable/15 has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=271a6593acf314e618ec17c657bd4ed75dab8d3f
commit 271a6593acf314e618ec17c657bd4ed75dab8d3f
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-26 16:48:09 +0000
LinuxKPI: skbuff: implement napi_build_skb()
Implement napi_build_skb() around linuxkpi_build_skb().
Sponsored by: The FreeBSD Foundation
(cherry picked from commit b36460e5ec4659d0fa14b35c9342c5a154b3db7d)
---
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