diff options
author | Eric Dumazet <edumazet@google.com> | 2021-11-15 09:23:03 -0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-11-16 19:07:54 -0800 |
commit | 49ecc2e9c3abd269951972fa8b23a4d081111b80 (patch) | |
tree | a80df702ca11dfc0473c23ed47b6552ce63f2a6a /net/ipv4/route.c | |
parent | 7071732c26fe2cf141185ed16a8a85d02495ae8c (diff) |
net: align static siphash keys
siphash keys use 16 bytes.
Define siphash_aligned_key_t macro so that we can make sure they
are not crossing a cache line boundary.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r-- | net/ipv4/route.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 0b4103b1e622..243a0c52be42 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -602,7 +602,7 @@ static void fnhe_remove_oldest(struct fnhe_hash_bucket *hash) static u32 fnhe_hashfun(__be32 daddr) { - static siphash_key_t fnhe_hash_key __read_mostly; + static siphash_aligned_key_t fnhe_hash_key; u64 hval; net_get_random_once(&fnhe_hash_key, sizeof(fnhe_hash_key)); |