diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-02 23:34:45 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-03 18:27:33 +0100 |
commit | d063dfb80911854ed273f6374b02f339a86462ba (patch) | |
tree | acd88810f6cec1f9184cafcafc608df7cb86fb5c | |
parent | b9a78f7f25adc1819d459ca28af8bc519aef143e (diff) |
queueing: more reasonable allocator function convention
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | src/device.c | 2 | ||||
-rw-r--r-- | src/queueing.c | 4 | ||||
-rw-r--r-- | src/queueing.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/device.c b/src/device.c index 98c05bc..4b4cca1 100644 --- a/src/device.c +++ b/src/device.c @@ -321,7 +321,7 @@ static int wg_newlink(struct net *src_net, struct net_device *dev, return ret; wg->incoming_handshakes_worker = - wg_packet_alloc_percpu_multicore_worker( + wg_packet_percpu_multicore_worker_alloc( wg_packet_handshake_receive_worker, wg); if (!wg->incoming_handshakes_worker) goto err_free_tstats; diff --git a/src/queueing.c b/src/queueing.c index 6f87fca..5c964fc 100644 --- a/src/queueing.c +++ b/src/queueing.c @@ -6,7 +6,7 @@ #include "queueing.h" struct multicore_worker __percpu * -wg_packet_alloc_percpu_multicore_worker(work_func_t function, void *ptr) +wg_packet_percpu_multicore_worker_alloc(work_func_t function, void *ptr) { int cpu; struct multicore_worker __percpu *worker = @@ -33,7 +33,7 @@ int wg_packet_queue_init(struct crypt_queue *queue, work_func_t function, return ret; if (function) { if (multicore) { - queue->worker = wg_packet_alloc_percpu_multicore_worker( + queue->worker = wg_packet_percpu_multicore_worker_alloc( function, queue); if (!queue->worker) return -ENOMEM; diff --git a/src/queueing.h b/src/queueing.h index d2866aa..dcfe938 100644 --- a/src/queueing.h +++ b/src/queueing.h @@ -23,7 +23,7 @@ int wg_packet_queue_init(struct crypt_queue *queue, work_func_t function, bool multicore, unsigned int len); void wg_packet_queue_free(struct crypt_queue *queue, bool multicore); struct multicore_worker __percpu * -wg_packet_alloc_percpu_multicore_worker(work_func_t function, void *ptr); +wg_packet_percpu_multicore_worker_alloc(work_func_t function, void *ptr); /* receive.c APIs: */ void wg_packet_receive(struct wg_device *wg, struct sk_buff *skb); |