[PATCH v2 15/15] patches: fixup skb list patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



4.19 does indeed add skb->list, but skb_list_del_init()
was not added until 4.20. This patch fixes builds against
4.19. Tested with backported v5.15.33.

Signed-off-by: Thomas Pedersen <thomas@xxxxxxxxxxxx>
---
 patches/0097-skb-list/mac80211-rx.patch | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/patches/0097-skb-list/mac80211-rx.patch b/patches/0097-skb-list/mac80211-rx.patch
index 65189dd94e52..1cad4f8ac30b 100644
--- a/patches/0097-skb-list/mac80211-rx.patch
+++ b/patches/0097-skb-list/mac80211-rx.patch
@@ -99,14 +99,19 @@ the older kernel instead. The list attributes where also backported to
  
  
  	/*
-@@ -5005,8 +5027,13 @@ void ieee80211_rx_napi(struct ieee80211_
+@@ -5005,8 +5027,18 @@ void ieee80211_rx_napi(struct ieee80211_
  		return;
  	}
  
 +#if LINUX_VERSION_IS_GEQ(4,19,0)
  	list_for_each_entry_safe(skb, tmp, &list, list) {
++#if LINUX_VERSION_IS_GEQ(4,20,0)
  		skb_list_del_init(skb);
 +#else
++		__list_del_entry(&skb->list);
++		skb_mark_not_on_list(skb);
++#endif
++#else
 +	skb_queue_walk_safe(&list, skb, tmp) {
 +		__skb_unlink(skb, &list);
 +#endif
-- 
2.30.2

--
To unsubscribe from this list: send the line "unsubscribe backports" in



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux