ipv6: use xarray iterator to implement inet6_dump_ifinfo()
authorEric Dumazet <edumazet@google.com>
Thu, 22 Feb 2024 10:50:11 +0000 (10:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Feb 2024 11:46:12 +0000 (11:46 +0000)
commitac14ad9755d4f8f286fd2cd710aa5dcf9a3c777a
tree0bbaee7ad9b3244463563f6d3bdd794c96a9e12b
parent8afc7a78d55de726b2747d7775c54def79509ec5
ipv6: use xarray iterator to implement inet6_dump_ifinfo()

Prepare inet6_dump_ifinfo() to run with RCU protection
instead of RTNL and use for_each_netdev_dump() interface.

Also properly return 0 at the end of a dump, avoiding
an extra recvmsg() system call and RTNL acquisition.

Note that RTNL-less dumps need core changes, coming later
in the series.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c