summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/netdev_lock.py
AgeCommit message (Collapse)Author
13 daysselftests: net: add test for netdev instance lock ordering on unregisterJakub Kicinski
Dismantle two netns holding a dummy and a netkit pair registered in opposite order. unregister_netdevice_many_notify() takes the instance locks of all the devices at once, nesting the two kinds of devices one way for the first netns and the other way for the second. With lockdep enabled this used to trigger a circular locking report. Acked-by: Stanislav Fomichev <sdf@fomichev.me> Reviewed-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org> Link: https://patch.msgid.link/20260926041832.1649675-2-kuba@kernel.org Signed-off-by: Paolo Abeni <pabeni@redhat.com>