diff options
| author | Stanislav Fomichev <[email protected]> | 2025-07-17 17:23:32 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-07-19 00:27:47 +0000 |
| commit | 5d4d84618e1aa2c9531afa3a6323f56e1db4dcf7 (patch) | |
| tree | 05718cc6cb99583cc2ab8c9822d142537dd952dc /net/core/dev_api.c | |
| parent | net: s/dev_get_flags/netif_get_flags/ (diff) | |
| download | kernel-5d4d84618e1aa2c9531afa3a6323f56e1db4dcf7.tar.gz kernel-5d4d84618e1aa2c9531afa3a6323f56e1db4dcf7.zip | |
net: s/dev_set_threaded/netif_set_threaded/
Commit cc34acd577f1 ("docs: net: document new locking reality")
introduced netif_ vs dev_ function semantics: the former expects locked
netdev, the latter takes care of the locking. We don't strictly
follow this semantics on either side, but there are more dev_xxx handlers
now that don't fit. Rename them to netif_xxx where appropriate.
Note that one dev_set_threaded call still remains in mt76 for debugfs file.
Signed-off-by: Stanislav Fomichev <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/core/dev_api.c')
| -rw-r--r-- | net/core/dev_api.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/net/core/dev_api.c b/net/core/dev_api.c index 1bf0153195f2..dd7f57013ce5 100644 --- a/net/core/dev_api.c +++ b/net/core/dev_api.c @@ -367,3 +367,15 @@ void netdev_state_change(struct net_device *dev) netdev_unlock_ops(dev); } EXPORT_SYMBOL(netdev_state_change); + +int dev_set_threaded(struct net_device *dev, bool threaded) +{ + int ret; + + netdev_lock(dev); + ret = netif_set_threaded(dev, threaded); + netdev_unlock(dev); + + return ret; +} +EXPORT_SYMBOL(dev_set_threaded); |
