diff options
author | Eric Dumazet <edumazet@google.com> | 2024-03-06 19:00:27 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-03-08 08:12:43 +0300 |
commit | 6e0735723ab437793cfab02d50b3ae3539aeb520 (patch) | |
tree | 4cd1f0fc1b3a701d34aa23e9b20299f3b9bfabb3 /include/net/protocol.h | |
parent | 571bf020be9c3b135e8b6dd87421919953268c1f (diff) | |
download | linux-6e0735723ab437793cfab02d50b3ae3539aeb520.tar.xz |
inet: move inet_ehash_secret and udp_ehash_secret into net_hotdata
"struct net_protocol" has a 32bit hole in 32bit arches.
Use it to store the 32bit secret used by UDP and TCP,
to increase cache locality in rx path.
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-15-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/net/protocol.h')
-rw-r--r-- | include/net/protocol.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/protocol.h b/include/net/protocol.h index 6aef8cb11cc8..3ff26e66735c 100644 --- a/include/net/protocol.h +++ b/include/net/protocol.h @@ -46,6 +46,7 @@ struct net_protocol { * socket lookup? */ icmp_strict_tag_validation:1; + u32 secret; }; #if IS_ENABLED(CONFIG_IPV6) |