]> git.ipfire.org Git - thirdparty/linux.git/commit
inet: switch inet_dump_fib() to RCU protection
authorEric Dumazet <edumazet@google.com>
Thu, 22 Feb 2024 10:50:19 +0000 (10:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Feb 2024 11:46:13 +0000 (11:46 +0000)
commit4ce5dc9316de50e0da84beafe55d1344f829cece
tree1814f7e005c025df154aa3c56d79436ed0106c78
parent0ac3fa0c3b365f97c3969f391edf7b44d3bb210d
inet: switch inet_dump_fib() to RCU protection

No longer hold RTNL while calling inet_dump_fib().

Also change return value for a completed dump:

Returning 0 instead of skb->len allows NLMSG_DONE
to be appended to the skb. User space does not have
to call us again to get a standalone NLMSG_DONE marker.

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>
net/ipv4/fib_frontend.c
net/ipv4/fib_trie.c