aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/device.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/device.h')
-rw-r--r--src/device.h5
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;