Date: Mon, 27 Jul 2026 00:10:35 +0000 From: Bjoern A. Zeeb <bz@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 299f6dc8bb71 - stable/15 - LinuxKPI: skbuff: add skb_put_zero() Message-ID: <6a66a1fb.2654e.4278a6ec@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch stable/15 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=299f6dc8bb718249db8f7317d1d7b89ccaf1cba3 commit 299f6dc8bb718249db8f7317d1d7b89ccaf1cba3 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: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. *home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a66a1fb.2654e.4278a6ec>
