]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ipv6: move inet6_ehash_secret and udp6_ehash_secret into net_hotdata
authorEric Dumazet <edumazet@google.com>
Wed, 6 Mar 2024 16:00:28 +0000 (16:00 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 8 Mar 2024 05:12:43 +0000 (21:12 -0800)
commit5af674bb90a030317a02419e04b66ec0dc892dcd
tree0d2cadaa498beef5328d3e23a788d972595b8b4c
parent6e0735723ab437793cfab02d50b3ae3539aeb520
ipv6: move inet6_ehash_secret and udp6_ehash_secret into net_hotdata

"struct inet6_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-16-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/hotdata.h
include/net/protocol.h
net/ipv6/inet6_hashtables.c
net/ipv6/udp.c