diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-01-13 05:25:46 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-01-13 05:25:46 +0100 |
commit | 2a348e4c945502204125d0519b55433b7d41853c (patch) | |
tree | 3dde14fdc784238b1a22adcf3784af5f4122c49c /src/data.c | |
parent | config: useless newline (diff) | |
download | wireguard-monolithic-historical-2a348e4c945502204125d0519b55433b7d41853c.tar.xz wireguard-monolithic-historical-2a348e4c945502204125d0519b55433b7d41853c.zip |
Use __read_mostly attribute when possible
Diffstat (limited to 'src/data.c')
-rw-r--r-- | src/data.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -43,8 +43,8 @@ struct decryption_ctx { }; #ifdef CONFIG_WIREGUARD_PARALLEL -static struct kmem_cache *encryption_ctx_cache; -static struct kmem_cache *decryption_ctx_cache; +static struct kmem_cache *encryption_ctx_cache __read_mostly; +static struct kmem_cache *decryption_ctx_cache __read_mostly; int packet_init_data_caches(void) { |