ipv6: use xa_array iterator to implement inet6_dump_addr()
authorEric Dumazet <edumazet@google.com>
Wed, 6 Mar 2024 15:51:43 +0000 (15:51 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Mar 2024 11:15:36 +0000 (11:15 +0000)
commit9cc4cc329d30dbb353fbb23ef8cd633e8f5b8ccf
tree9edd4a161c32994c424c1bcbc7656bf56d6e541f
parent46f5182dd792c55940ca520576d1544744732b81
ipv6: use xa_array iterator to implement inet6_dump_addr()

inet6_dump_addr() can use the new xa_array iterator
for better scalability.

Make it ready for RCU-only protection.
RTNL use is removed in the following patch.

Also properly return 0 at the end of a dump to avoid
and extra recvmsg() to get NLMSG_DONE.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c