diff options
author | Eric Dumazet <edumazet@google.com> | 2024-04-04 13:24:13 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-04-08 11:01:05 +0100 |
commit | eec53cc38c4aba41bc3fabd0a75bc30c2c8ea332 (patch) | |
tree | 671b02db22453cf2682e0c64a3ba35f007abeb11 /tools/testing/selftests/net/lib/py/ynl.py | |
parent | 802e12ff9cbff3bafb0b6f0fe79cff04dce9de16 (diff) |
ipv6: remove RTNL protection from ip6addrlbl_dump()
No longer hold RTNL while calling ip6addrlbl_dump()
("ip addrlabel show")
ip6addrlbl_dump() was already mostly relying on RCU anyway.
Add READ_ONCE()/WRITE_ONCE() annotations around
net->ipv6.ip6addrlbl_table.seq
Note that ifal_seq value is currently ignored in iproute2,
and a bit weak.
We might user later cb->seq / nl_dump_check_consistent()
protocol if needed.
Also change return value for a completed dump,
so that NLMSG_DONE can be appended to current skb,
saving one recvmsg() system call.
v2: read net->ipv6.ip6addrlbl_table.seq once, (David Ahern)
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link:https://lore.kernel.org/netdev/67f5cb70-14a4-4455-8372-f039da2f15c2@kernel.org/
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/ynl.py')
0 files changed, 0 insertions, 0 deletions