inet: use xa_array iterator to implement inet_dump_ifaddr()
authorEric Dumazet <edumazet@google.com>
Thu, 29 Feb 2024 11:40:16 +0000 (11:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Mar 2024 11:09:39 +0000 (11:09 +0000)
commitcdb2f80f1c10654efc66c1624f66df2b87eabf06
treef2e7cea036c72ec80082a44b44f0d412444c74ba
parent590e92cdc835fcf435d8611f2477fff0e16877c7
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: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/devinet.c