diff options
author | Eric Dumazet <edumazet@google.com> | 2024-03-06 16:00:25 +0000 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-03-07 21:12:43 -0800 |
commit | 4ea0875b9d897e3c64cdb486788509f1f062285b (patch) | |
tree | cbbc98c5381f58c927b6e43cd8a70eb15024d91b /include/net/hotdata.h | |
parent | 6a55ca6b0122d4678e3ab54a8553361aae5082f1 (diff) | |
download | linux-stable-4ea0875b9d897e3c64cdb486788509f1f062285b.tar.gz linux-stable-4ea0875b9d897e3c64cdb486788509f1f062285b.tar.bz2 linux-stable-4ea0875b9d897e3c64cdb486788509f1f062285b.zip |
ipv6: move tcpv6_protocol and udpv6_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-13-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/hotdata.h')
-rw-r--r-- | include/net/hotdata.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/net/hotdata.h b/include/net/hotdata.h index daeee8ce8084..03d758d25c02 100644 --- a/include/net/hotdata.h +++ b/include/net/hotdata.h @@ -14,6 +14,10 @@ struct net_hotdata { struct net_offload udpv4_offload; struct packet_offload ipv6_packet_offload; struct net_offload tcpv6_offload; +#if IS_ENABLED(CONFIG_IPV6) + struct inet6_protocol tcpv6_protocol; + struct inet6_protocol udpv6_protocol; +#endif struct net_offload udpv6_offload; #endif struct list_head offload_base; |