udp: move udpv4_offload and udpv6_offload to net_hotdata
authorEric Dumazet <edumazet@google.com>
Wed, 6 Mar 2024 16:00:24 +0000 (16:00 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 8 Mar 2024 05:12:43 +0000 (21:12 -0800)
commit6a55ca6b0122d4678e3ab54a8553361aae5082f1
treebd0fc786966ecbf6c57ee406c486e93f05c85b6e
parentaa70d2d16f280efe8aa52afc25a33b2ec8d346b6
udp: move udpv4_offload and udpv6_offload to net_hotdata

These structures are used in GRO and GSO paths.
Move them to net_hodata for better cache locality.

v2: udpv6_offload definition depends on CONFIG_INET=y

Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20240306160031.874438-12-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/hotdata.h
net/ipv4/udp_offload.c
net/ipv6/udp_offload.c