aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/data.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-01-13 05:25:46 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2017-01-13 05:25:46 +0100
commit2a348e4c945502204125d0519b55433b7d41853c (patch)
tree3dde14fdc784238b1a22adcf3784af5f4122c49c /src/data.c
parentconfig: useless newline (diff)
downloadwireguard-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/data.c b/src/data.c
index cf5a392..6cc6ce4 100644
--- a/src/data.c
+++ b/src/data.c
@@ -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)
{