Skip to content
Commit cdb2f80f authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

inet: use xa_array iterator to implement inet_dump_ifaddr()



1) inet_dump_ifaddr() can can run under RCU protection
   instead of RTNL.

2) properly return 0 at the end of a dump, avoiding an
   an extra recvmsg() system call.

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 590e92cd
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