aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/device.h
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2018-05-26 19:29:24 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-06-04 20:30:02 +0200
commit264292f6f0d0a3360a758b616b81253a97f0a396 (patch)
tree429827e38da16271909e47897985e0dfbb8fc842 /src/device.h
parentWIP (diff)
downloadwireguard-monolithic-historical-264292f6f0d0a3360a758b616b81253a97f0a396.tar.xz
wireguard-monolithic-historical-264292f6f0d0a3360a758b616b81253a97f0a396.zip
WIP2
Diffstat (limited to 'src/device.h')
-rw-r--r--src/device.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/device.h b/src/device.h
index 2a0e2c7..fae3845 100644
--- a/src/device.h
+++ b/src/device.h
@@ -10,13 +10,14 @@
#include "allowedips.h"
#include "hashtables.h"
#include "cookie.h"
+#include "mpmc_ring.h"
#include <linux/types.h>
#include <linux/netdevice.h>
#include <linux/workqueue.h>
#include <linux/mutex.h>
#include <linux/net.h>
-#include <linux/ptr_ring.h>
+//#include <linux/ptr_ring.h>
struct wireguard_device;
@@ -26,7 +27,9 @@ struct multicore_worker {
};
struct crypt_queue {
- struct ptr_ring ring;
+ //struct ptr_ring ring;
+ struct ck_ring ring;
+ struct ck_ring_buffer ring_buffer;
union {
struct {
struct multicore_worker __percpu *worker;