[PATCH 2/2] backports: add skb_list_del_init

Felix Fietkau <[email protected]>
Newsgroups org.kernel.vger.backports
Message-ID <[email protected]>
It will be needed by pending mac80211 changes

Signed-off-by: Felix Fietkau <[email protected]>
---
 backport/backport-include/linux/skbuff.h | 6 ++++++
 1 file changed, 6 insertions(+)

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)
-- 
2.28.0

--
To unsubscribe from this list: send the line "unsubscribe backports" in
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.