aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/backport-5.10
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2022-12-10 17:36:07 +0100
committerFelix Fietkau <nbd@nbd.name>2022-12-10 17:36:12 +0100
commit8327e0fb72f0de674150431f363fdfa6f3431b9c (patch)
treebee9c740f720df90e3022d69a08ba14b9cf21729 /target/linux/generic/backport-5.10
parent5f2d471279b15c36b50ba63058b6acfca94cc922 (diff)
downloadupstream-8327e0fb72f0de674150431f363fdfa6f3431b9c.tar.gz
upstream-8327e0fb72f0de674150431f363fdfa6f3431b9c.tar.bz2
upstream-8327e0fb72f0de674150431f363fdfa6f3431b9c.zip
kernel: backport the dev_set_threaded export to 5.10
Fixes mt76 build error Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/generic/backport-5.10')
-rw-r--r--target/linux/generic/backport-5.10/605-v5.12-net-export-dev_set_threaded-symbol.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/target/linux/generic/backport-5.10/605-v5.12-net-export-dev_set_threaded-symbol.patch b/target/linux/generic/backport-5.10/605-v5.12-net-export-dev_set_threaded-symbol.patch
new file mode 100644
index 0000000000..2846679c6f
--- /dev/null
+++ b/target/linux/generic/backport-5.10/605-v5.12-net-export-dev_set_threaded-symbol.patch
@@ -0,0 +1,24 @@
+From: Lorenzo Bianconi <lorenzo@kernel.org>
+Date: Sun, 14 Mar 2021 15:49:19 +0100
+Subject: [PATCH] net: export dev_set_threaded symbol
+
+For wireless devices (e.g. mt76 driver) multiple net_devices belongs to
+the same wireless phy and the napi object is registered in a dummy
+netdevice related to the wireless phy.
+Export dev_set_threaded in order to be reused in device drivers enabling
+threaded NAPI.
+
+Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
+Signed-off-by: David S. Miller <davem@davemloft.net>
+---
+
+--- a/net/core/dev.c
++++ b/net/core/dev.c
+@@ -6819,6 +6819,7 @@ int dev_set_threaded(struct net_device *
+
+ return err;
+ }
++EXPORT_SYMBOL(dev_set_threaded);
+
+ void netif_napi_add(struct net_device *dev, struct napi_struct *napi,
+ int (*poll)(struct napi_struct *, int), int weight)