From: Felix Fietkau <nbd@nbd.name>
To: backports@vger.kernel.org
Subject: [PATCH v2 1/2] backports: add netif_receive_skb_list
Date: Fri, 14 Aug 2020 16:29:57 +0200 [thread overview]
Message-ID: <20200814142958.7773-1-nbd@nbd.name> (raw)
It is needed for mac80211
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..fc69c2165e38 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,19,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
next reply other threads:[~2020-08-14 14:30 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-14 14:29 Felix Fietkau [this message]
2020-08-14 14:29 ` [PATCH v2 2/2] backports: add skb_list_del_init Felix Fietkau
2020-08-31 18:46 ` Hauke Mehrtens
2020-09-28 6:31 ` Felix Fietkau
2020-09-28 7:20 ` Johannes Berg
2020-09-28 9:12 ` Coelho, Luciano
2020-11-10 23:24 ` Hauke Mehrtens
2020-11-11 7:43 ` Johannes Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200814142958.7773-1-nbd@nbd.name \
--to=nbd@nbd.name \
--cc=backports@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).