]> git.ipfire.org Git - thirdparty/linux.git/commit
net: update netdev_lock_{type,name}
authorEric Dumazet <edumazet@google.com>
Thu, 8 Jan 2026 09:32:44 +0000 (09:32 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 10 Jan 2026 02:14:32 +0000 (18:14 -0800)
commiteb74c19fe10872ee1f29a8f90ca5ce943921afe9
treed0db6b73f608648979e02babfd3a95b171a19f2a
parent81c734dae203757fb3c9eee6f9896386940776bd
net: update netdev_lock_{type,name}

Add missing entries in netdev_lock_type[] and netdev_lock_name[] :

CAN, MCTP, RAWIP, CAIF, IP6GRE, 6LOWPAN, NETLINK, VSOCKMON,
IEEE802154_MONITOR.

Also add a WARN_ONCE() in netdev_lock_pos() to help future bug hunting
next time a protocol is added without updating these arrays.

Fixes: 1a33e10e4a95 ("net: partially revert dynamic lockdep key changes")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260108093244.830280-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/dev.c