aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/queueing.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-10-05 04:33:37 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-10-05 20:50:56 +0200
commitad1d5f1d8b3e6f65d08ed2637a895ae1a8e082d4 (patch)
treee86e5d9650b5efac5ae4735a3d07372a540bb5c0 /src/queueing.c
parentreceive: do not store endpoint in ctx (diff)
downloadwireguard-monolithic-historical-ad1d5f1d8b3e6f65d08ed2637a895ae1a8e082d4.tar.xz
wireguard-monolithic-historical-ad1d5f1d8b3e6f65d08ed2637a895ae1a8e082d4.zip
queueing: move from ctx to cb
Diffstat (limited to 'src/queueing.c')
-rw-r--r--src/queueing.c16
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);
-}