diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-05 04:33:37 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-05 20:50:56 +0200 |
commit | a199777a33e38424e0b33384b3df28d301623ed3 (patch) | |
tree | 6e931084700f87a302a5e708ab63775af1a6f69d /src/queueing.c | |
parent | f7177006b9900bf838981e224d2c6129ad288b00 (diff) |
queueing: move from ctx to cb
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/queueing.c')
-rw-r--r-- | src/queueing.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/queueing.c b/src/queueing.c index f1ae4f1..fa50511 100644 --- a/src/queueing.c +++ b/src/queueing.c @@ -1,9 +1,6 @@ /* Copyright (C) 2015-2017 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. */ #include "queueing.h" -#include <linux/slab.h> - -struct kmem_cache *crypt_ctx_cache __read_mostly; struct multicore_worker __percpu *packet_alloc_percpu_multicore_worker(work_func_t function, void *ptr) { @@ -44,16 +41,3 @@ void packet_queue_free(struct crypt_queue *queue, bool multicore) WARN_ON(!ptr_ring_empty_bh(&queue->ring)); ptr_ring_cleanup(&queue->ring, NULL); } - -int __init crypt_ctx_cache_init(void) -{ - crypt_ctx_cache = KMEM_CACHE(crypt_ctx, 0); - if (!crypt_ctx_cache) - return -ENOMEM; - return 0; -} - -void crypt_ctx_cache_uninit(void) -{ - kmem_cache_destroy(crypt_ctx_cache); -} |