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>
This commit is contained in:
committed by
Jakub Kicinski
parent
7071732c26
commit
49ecc2e9c3
@ -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));
|
||||
|
Reference in New Issue
Block a user