git: 271a6593acf3 - stable/15 - LinuxKPI: skbuff: implement napi_build_skb()

Bjoern A. Zeeb <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <6a66a1fd.25d75.6d87d5b9__19361.1757991434$1785111125$gmane$org@gitrepo.freebsd.org>
The branch stable/15 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=271a6593acf314e618ec17c657bd4ed75dab8d3f

commit 271a6593acf314e618ec17c657bd4ed75dab8d3f
Author:     Bjoern A. Zeeb <[email protected]>
AuthorDate: 2026-02-03 22:13:24 +0000
Commit:     Bjoern A. Zeeb <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.