aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/lib/py/ynl.py
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2024-04-04 13:24:13 +0000
committerDavid S. Miller <[email protected]>2024-04-08 11:01:05 +0100
commiteec53cc38c4aba41bc3fabd0a75bc30c2c8ea332 (patch)
tree671b02db22453cf2682e0c64a3ba35f007abeb11 /tools/testing/selftests/net/lib/py/ynl.py
parent802e12ff9cbff3bafb0b6f0fe79cff04dce9de16 (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 <[email protected]> Link:https://lore.kernel.org/netdev/[email protected]/ Reviewed-by: David Ahern <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/ynl.py')
0 files changed, 0 insertions, 0 deletions