diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-11-06 19:50:48 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-11-06 19:50:48 +0100 |
commit | aad9d7bccd158836918df742896272dad6af2395 (patch) | |
tree | 9b648a50cc1dd8cf17f9507b09838fedca07ebaa /src/data.c | |
parent | debug: support dynamic debug on skb addr (diff) | |
download | wireguard-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |