diff options
author | 2023-08-16 08:15:43 +0000 | |
---|---|---|
committer | 2023-08-16 11:09:17 +0100 | |
commit | f04b8d3478a3a63f17d8dc0dc6da16a828b48df0 (patch) | |
tree | 45703f4ce7f75dd79e9bd28c2e282d3e094bf6f6 /net/ipv4/af_inet.c | |
parent | inet: move inet->is_icsk to inet->inet_flags (diff) | |
download | wireguard-linux-f04b8d3478a3a63f17d8dc0dc6da16a828b48df0.tar.xz wireguard-linux-f04b8d3478a3a63f17d8dc0dc6da16a828b48df0.zip |
inet: move inet->nodefrag to inet->inet_flags
IP_NODEFRAG socket option can now be set/read
without locking the socket.
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>
Diffstat (limited to 'net/ipv4/af_inet.c')
-rw-r--r-- | net/ipv4/af_inet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index 0f46b71f8a98..2fb9948b5230 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c @@ -333,7 +333,7 @@ lookup_protocol: inet = inet_sk(sk); inet_assign_bit(IS_ICSK, sk, INET_PROTOSW_ICSK & answer_flags); - inet->nodefrag = 0; + inet_clear_bit(NODEFRAG, sk); if (SOCK_RAW == sock->type) { inet->inet_num = protocol; |