diff options
| author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2026-02-03 22:13:24 +0000 |
|---|---|---|
| committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2026-07-17 15:48:53 +0000 |
| commit | b36460e5ec4659d0fa14b35c9342c5a154b3db7d (patch) | |
| tree | 280a55a99dcc6569f8ea8014e8d9763ca4ff5469 | |
| parent | 32c983449a7c802bf47578d5304c6d505db7821a (diff) | |
LinuxKPI: skbuff: implement napi_build_skb()
Implement napi_build_skb() around linuxkpi_build_skb().
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
| -rw-r--r-- | sys/compat/linuxkpi/common/include/linux/skbuff.h | 8 |
1 files 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 |
