aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/data.c
diff options
context:
space:
mode:
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)