[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <9ee5ba9ca7506620b1a9695896992bfdfb000469.1615733129.git.lorenzo@kernel.org>
Date: Sun, 14 Mar 2021 15:49:19 +0100
From: Lorenzo Bianconi <lorenzo@...nel.org>
To: netdev@...r.kernel.org
Cc: davem@...emloft.net, kuba@...nel.org, weiwan@...gle.com,
nbd@....name, pabeni@...hat.com, edumazet@...gle.com,
hannes@...essinduktion.org, lorenzo.bianconi@...hat.com
Subject: [PATCH net-next] 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@...nel.org>
---
net/core/dev.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/core/dev.c b/net/core/dev.c
index 2bfdd528c7c3..18f82ca47655 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -6770,6 +6770,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)
--
2.29.2
Powered by blists - more mailing lists