aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireguard/device.c
diff options
context:
space:
mode:
authorSamiullah Khawaja <[email protected]>2025-07-23 01:30:30 +0000
committerJakub Kicinski <[email protected]>2025-07-25 01:34:55 +0000
commit78afdadafe6fe0c74c08fda156e7be0a0b402b90 (patch)
tree50ed59524c68cb20ee0d60a6196b49feacd7b028 /drivers/net/wireguard/device.c
parentnet: Create separate gro_flush_normal function (diff)
downloadkernel-78afdadafe6fe0c74c08fda156e7be0a0b402b90.tar.gz
kernel-78afdadafe6fe0c74c08fda156e7be0a0b402b90.zip
net: Use netif_threaded_enable instead of netif_set_threaded in drivers
Prepare for adding an enum type for NAPI threaded states by adding netif_threaded_enable API. De-export the existing netif_set_threaded API and only use it internally. Update existing drivers to use netif_threaded_enable instead of the de-exported netif_set_threaded. Note that dev_set_threaded used by mt76 debugfs file is unchanged. Signed-off-by: Samiullah Khawaja <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/wireguard/device.c')
-rw-r--r--drivers/net/wireguard/device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireguard/device.c b/drivers/net/wireguard/device.c
index 5afec5a865f4..813bd10d3dc7 100644
--- a/drivers/net/wireguard/device.c
+++ b/drivers/net/wireguard/device.c
@@ -366,7 +366,7 @@ static int wg_newlink(struct net_device *dev,
if (ret < 0)
goto err_free_handshake_queue;
- netif_set_threaded(dev, true);
+ netif_threaded_enable(dev);
ret = register_netdevice(dev);
if (ret < 0)
goto err_uninit_ratelimiter;