inet: implement lockless IP_MINTTL
authorEric Dumazet <edumazet@google.com>
Wed, 16 Aug 2023 08:15:47 +0000 (08:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Aug 2023 10:09:18 +0000 (11:09 +0100)
commit12af73269fd942c98ff9999a2ce0c04165aae136
tree6f331e6826eefbbc3a1bfc3fc24eac5434fabfad
parent10f42426e5bcea728d7fae96609b29b4fb1f7518
inet: implement lockless IP_MINTTL

inet->min_ttl is already read with READ_ONCE().

Implementing IP_MINTTL socket option set/read
without holding the socket lock is easy.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_sockglue.c