Date: Fri, 17 Jul 2026 15:49:22 +0000 From: Bjoern A. Zeeb <bz@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 32c983449a7c - main - LinuxKPI: skbuff: add skb_put_zero() Message-ID: <6a5a4f02.1de76.2afb4114@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=32c983449a7c802bf47578d5304c6d505db7821a commit 32c983449a7c802bf47578d5304c6d505db7821a 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-17 15:48:53 +0000 LinuxKPI: skbuff: add skb_put_zero() Add skb_put_zero() as a simple wrapper around __skb_put_zero(). Sponsored by: The FreeBSD Foundation MFC after: 3 days --- 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?6a5a4f02.1de76.2afb4114>
