inet: implement lockless IP_MTU_DISCOVER
authorEric Dumazet <edumazet@google.com>
Fri, 22 Sep 2023 03:42:15 +0000 (03:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Oct 2023 18:39:18 +0000 (19:39 +0100)
commitceaa714138a372ac63cc2c5c19ee0882d22827f9
tree73b347539e9039e35d9ef9566cf38ec5e6cfb214
parentc9746e6a19c24b2d9a74d6657daee3b39fdc1bec
inet: implement lockless IP_MTU_DISCOVER

inet->pmtudisc can be read locklessly.

Implement proper lockless reads and writes to inet->pmtudisc

ip_sock_set_mtu_discover() can now be called from arbitrary
contexts.

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/net/ip.h
net/ipv4/ip_output.c
net/ipv4/ip_sockglue.c
net/ipv4/ping.c
net/ipv4/raw.c
net/ipv4/udp.c
net/netfilter/ipvs/ip_vs_sync.c