diff mbox series

[2/2] backports: add skb_list_del_init

Message ID 20200814141658.5384-2-nbd@nbd.name (mailing list archive)
State New, archived
Headers show
Series [1/2] backports: add netif_receive_skb_list | expand

Commit Message

Felix Fietkau Aug. 14, 2020, 2:16 p.m. UTC
It will be needed by pending mac80211 changes

Signed-off-by: Felix Fietkau <nbd@nbd.name>
---
 backport/backport-include/linux/skbuff.h | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/backport/backport-include/linux/skbuff.h b/backport/backport-include/linux/skbuff.h
index 3ed990d0d2ef..893df783a263 100644
--- a/backport/backport-include/linux/skbuff.h
+++ b/backport/backport-include/linux/skbuff.h
@@ -385,6 +385,12 @@  static inline void skb_mark_not_on_list(struct sk_buff *skb)
 	skb->next = NULL;
 }
 #endif /* 4.19.10 <= x < 4.20 */
+
+static inline void skb_list_del_init(struct sk_buff *skb)
+{
+	__list_del_entry(&skb->list);
+	skb_mark_not_on_list(skb);
+}
 #endif
 
 #if LINUX_VERSION_IS_LESS(4,11,0)