diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2021-03-14 15:49:19 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-15 12:35:23 -0700 |
commit | 8f64860f8b567cc4f8ac854a65cbf6337404c520 (patch) | |
tree | 3e37790aca88a4f0a9b2f7f7db087d1cdda25768 | |
parent | db7284a6ccc4a6d7714645141f7dcee0fcb4e57d (diff) | |
download | linux-8f64860f8b567cc4f8ac854a65cbf6337404c520.tar.bz2 |
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>
-rw-r--r-- | net/core/dev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 5a2847a19cf2..6bc20eabd2b0 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -6766,6 +6766,7 @@ int dev_set_threaded(struct net_device *dev, bool threaded) 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) |