rtnetlink: add RTNL_FLAG_DUMP_UNLOCKED flag
authorEric Dumazet <edumazet@google.com>
Thu, 22 Feb 2024 10:50:15 +0000 (10:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Feb 2024 11:46:12 +0000 (11:46 +0000)
commit386520e0ecc01004d3a29c70c5a77d4bbf8a8420
tree8b38b88d2c08478267f7098e060cdbbdb474d0d1
parente39951d965bf58b5aba7f61dc1140dcb8271af22
rtnetlink: add RTNL_FLAG_DUMP_UNLOCKED flag

Similarly to RTNL_FLAG_DOIT_UNLOCKED, this new flag
allows dump operations registered via rtnl_register()
or rtnl_register_module() to opt-out from RTNL protection.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netlink.h
include/net/rtnetlink.h
net/core/rtnetlink.c
net/netlink/af_netlink.c