Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Feb 2026 02:29:18 +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: 8689e14c2fbc - stable/15 - LinuxKPI: skbuff: implement skb_queue_splice()
Message-ID:  <69a1017e.219b5.3e5b07a5@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=8689e14c2fbc2708200ba317368a536984264fc0

commit 8689e14c2fbc2708200ba317368a536984264fc0
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2026-01-20 22:49:05 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2026-02-26 22:58:14 +0000

    LinuxKPI: skbuff: implement skb_queue_splice()
    
    Add skb_queue_splice() and use it in skb_queue_splice_init() which
    already had that functionality (plus the init bit).
    The new function is used by rtw89(4).
    
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit f1d7eea9dc1e78ecd247e060f4e8395ba4e77346)
---
 sys/compat/linuxkpi/common/include/linux/skbuff.h | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/sys/compat/linuxkpi/common/include/linux/skbuff.h b/sys/compat/linuxkpi/common/include/linux/skbuff.h
index 2e560a120e41..c43d6daff5ee 100644
--- a/sys/compat/linuxkpi/common/include/linux/skbuff.h
+++ b/sys/compat/linuxkpi/common/include/linux/skbuff.h
@@ -770,7 +770,7 @@ ___skb_queue_splice(const struct sk_buff_head *from,
 }
 
 static inline void
-skb_queue_splice_init(struct sk_buff_head *from, struct sk_buff_head *to)
+skb_queue_splice(const struct sk_buff_head *from, struct sk_buff_head *to)
 {
 
 	SKB_TRACE2(from, to);
@@ -780,6 +780,13 @@ skb_queue_splice_init(struct sk_buff_head *from, struct sk_buff_head *to)
 
 	___skb_queue_splice(from, (struct sk_buff *)to, to->next);
 	to->qlen += from->qlen;
+}
+
+static inline void
+skb_queue_splice_init(struct sk_buff_head *from, struct sk_buff_head *to)
+{
+
+	skb_queue_splice(from, to);
 	__skb_queue_head_init(from);
 }
 


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69a1017e.219b5.3e5b07a5>