]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
udp: lockless UDP_ENCAP_L2TPINUDP / UDP_GRO
authorEric Dumazet <edumazet@google.com>
Tue, 12 Sep 2023 09:17:27 +0000 (09:17 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Jan 2024 16:10:28 +0000 (17:10 +0100)
commit8d929b6c11141429f79b6b17ada2eeabcb988b99
treef706063fc98a10d404aed4a3aa7741f88692c1a4
parentb680a907d17ca3d2b33c6afcf879f032b6065c9b
udp: lockless UDP_ENCAP_L2TPINUDP / UDP_GRO

[ Upstream commit ac9a7f4ce5dda1472e8f44096f33066c6ec1a3b4 ]

Move udp->encap_enabled to udp->udp_flags.

Add udp_test_and_set_bit() helper to allow lockless
udp_tunnel_encap_enable() implementation.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Stable-dep-of: 70a36f571362 ("udp: annotate data-races around udp->encap_type")
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/udp.h
include/net/udp_tunnel.h
net/ipv4/udp.c
net/ipv4/udp_tunnel_core.c
net/ipv6/udp.c