backports.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] backports: add netif_receive_skb_list
@ 2020-08-14 14:16 Felix Fietkau
  2020-08-14 14:16 ` [PATCH 2/2] backports: add skb_list_del_init Felix Fietkau
  2020-08-14 14:29 ` [PATCH 1/2] backports: add netif_receive_skb_list Felix Fietkau
  0 siblings, 2 replies; 3+ messages in thread
From: Felix Fietkau @ 2020-08-14 14:16 UTC (permalink / raw)
  To: backports

It will be needed by pending mac80211 changes

Signed-off-by: Felix Fietkau <nbd@nbd.name>
---
 backport/backport-include/linux/netdevice.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/backport/backport-include/linux/netdevice.h b/backport/backport-include/linux/netdevice.h
index edb0aaf33cde..ba3d352350ad 100644
--- a/backport/backport-include/linux/netdevice.h
+++ b/backport/backport-include/linux/netdevice.h
@@ -372,6 +372,18 @@ static inline int _bp_netdev_upper_dev_link(struct net_device *dev,
 	macro_dispatcher(netdev_upper_dev_link, __VA_ARGS__)(__VA_ARGS__)
 #endif
 
+#if LINUX_VERSION_IS_LESS(4,20,0)
+static inline void netif_receive_skb_list(struct list_head *head)
+{
+	struct sk_buff *skb, *next;
+
+	list_for_each_entry_safe(skb, next, head, list) {
+		skb_list_del_init(skb);
+		netif_receive_skb(skb);
+	}
+}
+#endif
+
 #if LINUX_VERSION_IS_LESS(5,0,0)
 static inline int backport_dev_open(struct net_device *dev, struct netlink_ext_ack *extack)
 {
-- 
2.28.0

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] backports: add skb_list_del_init
  2020-08-14 14:16 [PATCH 1/2] backports: add netif_receive_skb_list Felix Fietkau
@ 2020-08-14 14:16 ` Felix Fietkau
  2020-08-14 14:29 ` [PATCH 1/2] backports: add netif_receive_skb_list Felix Fietkau
  1 sibling, 0 replies; 3+ messages in thread
From: Felix Fietkau @ 2020-08-14 14:16 UTC (permalink / raw)
  To: backports

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] backports: add netif_receive_skb_list
  2020-08-14 14:16 [PATCH 1/2] backports: add netif_receive_skb_list Felix Fietkau
  2020-08-14 14:16 ` [PATCH 2/2] backports: add skb_list_del_init Felix Fietkau
@ 2020-08-14 14:29 ` Felix Fietkau
  1 sibling, 0 replies; 3+ messages in thread
From: Felix Fietkau @ 2020-08-14 14:29 UTC (permalink / raw)
  To: backports

On 2020-08-14 16:16, Felix Fietkau wrote:
> It will be needed by pending mac80211 changes
> 
> Signed-off-by: Felix Fietkau <nbd@nbd.name>
Sorry, sent the wrong series, will send v2.

- Felix

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-08-14 14:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-14 14:16 [PATCH 1/2] backports: add netif_receive_skb_list Felix Fietkau
2020-08-14 14:16 ` [PATCH 2/2] backports: add skb_list_del_init Felix Fietkau
2020-08-14 14:29 ` [PATCH 1/2] backports: add netif_receive_skb_list Felix Fietkau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).