diff options
author | Eric Dumazet | 2024-02-22 10:50:17 +0000 |
---|---|---|
committer | David S. Miller | 2024-02-26 11:46:12 +0000 |
commit | 22e36ea9f5d7707ae3d64c497d172f4ef735c353 (patch) | |
tree | ac682eeb74add4a984dec6c6505a3d2ff57a1e58 /include/net | |
parent | 69fdb7e411b6d01eb08447e672302b69c9e176ad (diff) |
inet: allow ip_valid_fib_dump_req() to be called with RTNL or RCU
Add a new field into struct fib_dump_filter, to let callers
tell if they use RTNL locking or RCU.
This is used in the following patch, when inet_dump_fib()
no longer holds RTNL.
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>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/ip_fib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h index d4667b7797e3..9b2f69ba5e49 100644 --- a/include/net/ip_fib.h +++ b/include/net/ip_fib.h @@ -264,6 +264,7 @@ struct fib_dump_filter { bool filter_set; bool dump_routes; bool dump_exceptions; + bool rtnl_held; unsigned char protocol; unsigned char rt_type; unsigned int flags; |