diff options
| author | Eric Dumazet <edumazet@google.com> | 2024-02-22 13:50:15 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-10-17 16:24:29 +0300 |
| commit | ba5366b87c0dc3b15463495598737e28015559cd (patch) | |
| tree | 4f9a5e3b908ff954cff30ce823861293e3b41903 /include/linux | |
| parent | c8c76f1550b96e83036f2a0d36814bd4c1b1bd2c (diff) | |
| download | linux-ba5366b87c0dc3b15463495598737e28015559cd.tar.xz | |
rtnetlink: add RTNL_FLAG_DUMP_UNLOCKED flag
[ Upstream commit 386520e0ecc01004d3a29c70c5a77d4bbf8a8420 ]
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>
Stable-dep-of: 5be2062e3080 ("mpls: Handle error of rtnl_register_module().")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/netlink.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/netlink.h b/include/linux/netlink.h index 75d7de34c908..e8d713a37d17 100644 --- a/include/linux/netlink.h +++ b/include/linux/netlink.h @@ -289,6 +289,7 @@ struct netlink_callback { u16 answer_flags; u32 min_dump_alloc; unsigned int prev_seq, seq; + int flags; bool strict_check; union { u8 ctx[48]; @@ -321,6 +322,7 @@ struct netlink_dump_control { void *data; struct module *module; u32 min_dump_alloc; + int flags; }; int __netlink_dump_start(struct sock *ssk, struct sk_buff *skb, |
