summaryrefslogtreecommitdiff
path: root/include/net/hotdata.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2024-03-06 19:00:26 +0300
committerJakub Kicinski <kuba@kernel.org>2024-03-08 08:12:43 +0300
commit571bf020be9c3b135e8b6dd87421919953268c1f (patch)
tree91923cbd3e38e7adab506f66c834a5193c7fc301 /include/net/hotdata.h
parent4ea0875b9d897e3c64cdb486788509f1f062285b (diff)
downloadlinux-571bf020be9c3b135e8b6dd87421919953268c1f.tar.xz
inet: move tcp_protocol and udp_protocol to net_hotdata
These structures are read in rx path, move them to net_hotdata for better cache locality. 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-14-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/hotdata.h')
-rw-r--r--include/net/hotdata.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/hotdata.h b/include/net/hotdata.h
index 03d758d25c02..87215f7ac200 100644
--- a/include/net/hotdata.h
+++ b/include/net/hotdata.h
@@ -11,7 +11,9 @@ struct net_hotdata {
#if IS_ENABLED(CONFIG_INET)
struct packet_offload ip_packet_offload;
struct net_offload tcpv4_offload;
+ struct net_protocol tcp_protocol;
struct net_offload udpv4_offload;
+ struct net_protocol udp_protocol;
struct packet_offload ipv6_packet_offload;
struct net_offload tcpv6_offload;
#if IS_ENABLED(CONFIG_IPV6)