summaryrefslogtreecommitdiff
path: root/include/net/protocol.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2024-03-06 19:00:29 +0300
committerJakub Kicinski <kuba@kernel.org>2024-03-08 08:12:43 +0300
commitdf51b84564159cdd91a67ee0f9e30b42b3a73cef (patch)
tree14d8de05a58c1b997bc3815bfb7c3aac0f1cb8d0 /include/net/protocol.h
parent5af674bb90a030317a02419e04b66ec0dc892dcd (diff)
downloadlinux-df51b84564159cdd91a67ee0f9e30b42b3a73cef.tar.xz
ipv6: move tcp_ipv6_hash_secret and udp_ipv6_hash_secret to net_hotdata
Use a 32bit hole in "struct net_offload" to store the remaining 32bit secrets used by TCPv6 and UDPv6. 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-17-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/protocol.h')
-rw-r--r--include/net/protocol.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/protocol.h b/include/net/protocol.h
index 213649d2ab09..b2499f88f8f8 100644
--- a/include/net/protocol.h
+++ b/include/net/protocol.h
@@ -70,6 +70,7 @@ struct inet6_protocol {
struct net_offload {
struct offload_callbacks callbacks;
unsigned int flags; /* Flags used by IPv6 for now */
+ u32 secret;
};
/* This should be set for any extension header which is compatible with GSO. */
#define INET6_PROTO_GSO_EXTHDR 0x1