git: 299f6dc8bb71 - stable/15 - LinuxKPI: skbuff: add skb_put_zero()

Bjoern A. Zeeb <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <6a66a1fb.2654e.4278a6ec__2204.13892982236$1785111113$gmane$org@gitrepo.freebsd.org>
The branch stable/15 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=299f6dc8bb718249db8f7317d1d7b89ccaf1cba3

commit 299f6dc8bb718249db8f7317d1d7b89ccaf1cba3
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:05 +0000

    LinuxKPI: skbuff: add skb_put_zero()
    
    Add skb_put_zero() as a simple wrapper around __skb_put_zero().
    
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit 32c983449a7c802bf47578d5304c6d505db7821a)
---
 sys/compat/linuxkpi/common/include/linux/skbuff.h | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/sys/compat/linuxkpi/common/include/linux/skbuff.h b/sys/compat/linuxkpi/common/include/linux/skbuff.h
index 3133944ed72e..ca8c7320a37b 100644
--- a/sys/compat/linuxkpi/common/include/linux/skbuff.h
+++ b/sys/compat/linuxkpi/common/include/linux/skbuff.h
@@ -436,7 +436,7 @@ skb_put_data(struct sk_buff *skb, const void *buf, size_t len)
 
 /* skb_put() + filling with zeros. */
 static inline void *
-skb_put_zero(struct sk_buff *skb, size_t len)
+__skb_put_zero(struct sk_buff *skb, size_t len)
 {
 	void *s;
 
@@ -446,6 +446,12 @@ skb_put_zero(struct sk_buff *skb, size_t len)
 	return (s);
 }
 
+static inline void *
+skb_put_zero(struct sk_buff *skb, size_t len)
+{
+	return (__skb_put_zero(skb, len));
+}
+
 /*
  * Remove len bytes from beginning of data.
  *
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.