diff options
| author | Eric Dumazet <[email protected]> | 2021-11-15 17:23:03 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2021-11-17 03:07:54 +0000 |
| commit | 49ecc2e9c3abd269951972fa8b23a4d081111b80 (patch) | |
| tree | a80df702ca11dfc0473c23ed47b6552ce63f2a6a /net/core/secure_seq.c | |
| parent | net: use .data.once section in netdev_level_once() (diff) | |
| download | kernel-49ecc2e9c3abd269951972fa8b23a4d081111b80.tar.gz kernel-49ecc2e9c3abd269951972fa8b23a4d081111b80.zip | |
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 <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/core/secure_seq.c')
| -rw-r--r-- | net/core/secure_seq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/secure_seq.c b/net/core/secure_seq.c index b5bc680d4755..9b8443774449 100644 --- a/net/core/secure_seq.c +++ b/net/core/secure_seq.c @@ -19,8 +19,8 @@ #include <linux/in6.h> #include <net/tcp.h> -static siphash_key_t net_secret __read_mostly; -static siphash_key_t ts_secret __read_mostly; +static siphash_aligned_key_t net_secret; +static siphash_aligned_key_t ts_secret; static __always_inline void net_secret_init(void) { |
