aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/data.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-11-06 19:50:48 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2016-11-06 19:50:48 +0100
commitaad9d7bccd158836918df742896272dad6af2395 (patch)
tree9b648a50cc1dd8cf17f9507b09838fedca07ebaa /src/data.c
parentdebug: support dynamic debug on skb addr (diff)
downloadwireguard-monolithic-historical-aad9d7bccd158836918df742896272dad6af2395.tar.xz
wireguard-monolithic-historical-aad9d7bccd158836918df742896272dad6af2395.zip
data: only uses kmem_cache for parallism
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/data.c b/src/data.c
index ab775a5..f53bbc6 100644
--- a/src/data.c
+++ b/src/data.c
@@ -42,6 +42,7 @@ struct decryption_ctx {
int ret;
};
+#ifdef CONFIG_WIREGUARD_PARALLEL
static struct kmem_cache *encryption_ctx_cache;
static struct kmem_cache *decryption_ctx_cache;
@@ -64,6 +65,7 @@ void packet_deinit_data_caches(void)
kmem_cache_destroy(encryption_ctx_cache);
kmem_cache_destroy(decryption_ctx_cache);
}
+#endif
/* This is RFC6479, a replay detection bitmap algorithm that avoids bitshifts */
static inline bool counter_validate(union noise_counter *counter, u64 their_counter)