diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-04 05:05:51 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-10-05 15:27:29 +0200 |
commit | aa4d07187b66bf83bfddfa6d964f7c141518ba7b (patch) | |
tree | dd5d948dce7251d25079bea81ae103d7a0ae9bc8 /src/device.h | |
parent | receive: we're not planning on turning that into a while loop now (diff) | |
download | wireguard-monolithic-historical-aa4d07187b66bf83bfddfa6d964f7c141518ba7b.tar.xz wireguard-monolithic-historical-aa4d07187b66bf83bfddfa6d964f7c141518ba7b.zip |
queueing: use ptr_ring instead of linked lists
Diffstat (limited to 'src/device.h')
-rw-r--r-- | src/device.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/device.h b/src/device.h index 538a14e..4932477 100644 --- a/src/device.h +++ b/src/device.h @@ -13,6 +13,7 @@ #include <linux/workqueue.h> #include <linux/mutex.h> #include <linux/net.h> +#include <linux/ptr_ring.h> struct wireguard_device; @@ -22,9 +23,7 @@ struct multicore_worker { }; struct crypt_queue { - spinlock_t lock; - int len; - struct list_head queue; + struct ptr_ring ring; union { struct { struct multicore_worker __percpu *worker; |