inet: implement lockless IP_TOS
authorEric Dumazet <edumazet@google.com>
Fri, 22 Sep 2023 03:42:16 +0000 (03:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Oct 2023 18:39:18 +0000 (19:39 +0100)
commite08d0b3d172311e2bb500865c0d0038533d0ff11
tree0c5343300213611a52bf2904f1aa129567929171
parentceaa714138a372ac63cc2c5c19ee0882d22827f9
inet: implement lockless IP_TOS

Some reads of inet->tos are racy.

Add needed READ_ONCE() annotations and convert IP_TOS option lockless.

v2: missing changes in include/net/route.h (David Ahern)

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
include/net/route.h
net/dccp/ipv4.c
net/ipv4/inet_diag.c
net/ipv4/ip_output.c
net/ipv4/ip_sockglue.c
net/ipv4/tcp_ipv4.c
net/mptcp/sockopt.c
net/sctp/protocol.c
tools/testing/selftests/net/mptcp/mptcp_connect.sh