Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 4ce5dc93 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

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: default avatarEric Dumazet <edumazet@google.com>
Reviewed-by: default avatarDonald Hunter <donald.hunter@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0ac3fa0c
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment