inet: implement lockless IP_MULTICAST_TTL
authorEric Dumazet <edumazet@google.com>
Fri, 22 Sep 2023 03:42:14 +0000 (03:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Oct 2023 18:39:18 +0000 (19:39 +0100)
commitc9746e6a19c24b2d9a74d6657daee3b39fdc1bec
tree0c4c1653ac642f05004c576ce39640e3cc055011
parent2be825ebb9d1b17f1a9e46af78d24b76c4ff7a1f
inet: implement lockless IP_MULTICAST_TTL

inet->mc_ttl can be read locklessly.

Implement proper lockless reads and writes to inet->mc_ttl

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_output.c
net/ipv4/ip_sockglue.c
net/netfilter/ipvs/ip_vs_sync.c