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). Sponosred by: The FreeBSD Foundation MFC after: 3 days
This commit is contained in:
@@ -770,7 +770,7 @@ ___skb_queue_splice(const struct sk_buff_head *from,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
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);
|
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);
|
___skb_queue_splice(from, (struct sk_buff *)to, to->next);
|
||||||
to->qlen += from->qlen;
|
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);
|
__skb_queue_head_init(from);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user