diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-02-22 17:25:46 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-02-23 15:59:31 -0800 |
commit | 5a0598695634a6bb4126818902dd9140cd9df8b6 (patch) | |
tree | fb56b27419943889ce2b976b89a600ad530ce35f /drivers/net/wireguard/send.c | |
parent | d5a49aa6c3e264a93a7d08485d66e346be0969dd (diff) | |
download | linux-stable-5a0598695634a6bb4126818902dd9140cd9df8b6.tar.gz linux-stable-5a0598695634a6bb4126818902dd9140cd9df8b6.tar.bz2 linux-stable-5a0598695634a6bb4126818902dd9140cd9df8b6.zip |
wireguard: peer: put frequently used members above cache lines
The is_dead boolean is checked for every single packet, while the
internal_id member is used basically only for pr_debug messages. So it
makes sense to hoist up is_dead into some space formerly unused by a
struct hole, while demoting internal_api to below the lowest struct
cache line.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/wireguard/send.c')
0 files changed, 0 insertions, 0 deletions