kernel: bump 5.10 to 5.10.175
[openwrt/openwrt.git] / target / linux / generic / backport-5.10 / 605-v5.12-net-export-dev_set_threaded-symbol.patch
1 From: Lorenzo Bianconi <lorenzo@kernel.org>
2 Date: Sun, 14 Mar 2021 15:49:19 +0100
3 Subject: [PATCH] net: export dev_set_threaded symbol
4
5 For wireless devices (e.g. mt76 driver) multiple net_devices belongs to
6 the same wireless phy and the napi object is registered in a dummy
7 netdevice related to the wireless phy.
8 Export dev_set_threaded in order to be reused in device drivers enabling
9 threaded NAPI.
10
11 Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
12 Signed-off-by: David S. Miller <davem@davemloft.net>
13 ---
14
15 --- a/net/core/dev.c
16 +++ b/net/core/dev.c
17 @@ -6822,6 +6822,7 @@ int dev_set_threaded(struct net_device *
18
19 return err;
20 }
21 +EXPORT_SYMBOL(dev_set_threaded);
22
23 void netif_napi_add(struct net_device *dev, struct napi_struct *napi,
24 int (*poll)(struct napi_struct *, int), int weight)