diff options
| author | Samiullah Khawaja <[email protected]> | 2025-07-23 01:30:30 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-07-25 01:34:55 +0000 |
| commit | 78afdadafe6fe0c74c08fda156e7be0a0b402b90 (patch) | |
| tree | 50ed59524c68cb20ee0d60a6196b49feacd7b028 /net/core/dev.h | |
| parent | net: Create separate gro_flush_normal function (diff) | |
| download | kernel-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 'net/core/dev.h')
| -rw-r--r-- | net/core/dev.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/core/dev.h b/net/core/dev.h index a603387fb566..f5b567310908 100644 --- a/net/core/dev.h +++ b/net/core/dev.h @@ -322,6 +322,8 @@ static inline bool napi_get_threaded(struct napi_struct *n) int napi_set_threaded(struct napi_struct *n, bool threaded); +int netif_set_threaded(struct net_device *dev, bool threaded); + int rps_cpumask_housekeeping(struct cpumask *mask); #if defined(CONFIG_DEBUG_NET) && defined(CONFIG_BPF_SYSCALL) |
