Date: Mon, 28 Nov 2022 18:50:01 GMT 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: ce9f36610ea9 - main - LinuxKPI: SKB: implement skb_peek() Message-ID: <202211281850.2ASIo1wh097685@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=ce9f36610ea9ff29d42a2bcfed44b020c2e56dcb commit ce9f36610ea9ff29d42a2bcfed44b020c2e56dcb Author: Bjoern A. Zeeb <bz@FreeBSD.org> AuthorDate: 2022-11-28 18:47:08 +0000 Commit: Bjoern A. Zeeb <bz@FreeBSD.org> CommitDate: 2022-11-28 18:47:08 +0000 LinuxKPI: SKB: implement skb_peek() Sponsored by: The FreeBSD Foundation MFC after: 3 days --- sys/compat/linuxkpi/common/include/linux/skbuff.h | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/sys/compat/linuxkpi/common/include/linux/skbuff.h b/sys/compat/linuxkpi/common/include/linux/skbuff.h index d3a795344f86..992cc2d44b39 100644 --- a/sys/compat/linuxkpi/common/include/linux/skbuff.h +++ b/sys/compat/linuxkpi/common/include/linux/skbuff.h @@ -558,6 +558,18 @@ skb_queue_tail(struct sk_buff_head *q, struct sk_buff *skb) return (__skb_queue_tail(q, skb)); } +static inline struct sk_buff * +skb_peek(struct sk_buff_head *q) +{ + struct sk_buff *skb; + + skb = q->next; + SKB_TRACE2(q, skb); + if (skb == (struct sk_buff *)q) + return (NULL); + return (skb); +} + static inline struct sk_buff * skb_peek_tail(struct sk_buff_head *q) { @@ -910,14 +922,6 @@ skb_reset_mac_header(struct sk_buff *skb) SKB_TODO(); } -static inline struct sk_buff * -skb_peek(struct sk_buff_head *q) -{ - SKB_TRACE(q); - SKB_TODO(); - return (NULL); -} - static inline __sum16 csum_unfold(__sum16 sum) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202211281850.2ASIo1wh097685>