ipv6: lockless IPV6_UNICAST_HOPS implementation
authorEric Dumazet <edumazet@google.com>
Tue, 12 Sep 2023 16:01:59 +0000 (16:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Sep 2023 09:33:46 +0000 (10:33 +0100)
commitb0adfba7ee770fef20b1b6d86706c28f7fccfb07
tree4a7a9fe910c850fcc4492d034cf57d0db89c4ae2
parentf2fa1c812c91e99d0317d1fc7d845e1e05f39716
ipv6: lockless IPV6_UNICAST_HOPS implementation

Some np->hop_limit accesses are racy, when socket lock is not held.

Add missing annotations and switch to full lockless implementation.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ipv6.h
include/net/ipv6.h
net/ipv6/ip6_output.c
net/ipv6/ipv6_sockglue.c
net/ipv6/mcast.c
net/ipv6/ndisc.c