]> git.ipfire.org Git - thirdparty/linux.git/commit
net: rename netdev_ops_assert_locked()
authorJakub Kicinski <kuba@kernel.org>
Wed, 3 Jun 2026 01:28:30 +0000 (18:28 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 4 Jun 2026 21:04:55 +0000 (14:04 -0700)
commit251bc9db88fb351ea2dfbd976c4e6aaae6507a91
treebc40b516c3f37d5b9c9d5c3eab6f2c787087d514
parent93790c374b9d77f3db15786d7d432872d92751cf
net: rename netdev_ops_assert_locked()

Jakub suggests renaming the existing assert to match
the netdev_lock_ops_compat() semantics.

We want netdev_assert_locked_ops() to mean - if the driver
is ops locked - check that it's holding the device lock.

The existing helper check for either ops lock or rtnl_lock,
which is the locking behavior of netdev_lock_ops_compat().

The reason for naming divergence is likely that
netdev_ops_assert_locked() predated the _compat() helpers.

Suggested-by: Jakub Sitnicki <jakub@cloudflare.com>
Reviewed-by: Nicolai Buchwitz <nb@tipi-net.de>
Reviewed-by: Jakub Sitnicki <jakub@cloudflare.com>
Acked-by: Stanislav Fomichev <sdf@fomichev.me>
Link: https://patch.msgid.link/20260603012840.2254293-2-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
include/net/netdev_lock.h
net/core/dev.c
net/core/dev_addr_lists.c
net/core/link_watch.c
net/core/lock_debug.c
net/core/netdev_queues.c
net/ethtool/netlink.c
net/ipv6/addrconf.c
net/xdp/xsk_buff_pool.c