diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-09-15 15:25:22 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-09-15 15:34:54 +0200 |
commit | ca392c705e19977abaa280d309685a1c62c937d4 (patch) | |
tree | 82b1285a30a1fb55216a5134a7183c5bf7c68482 /src/device.h | |
parent | data: reorganize and edit new queuing code (diff) | |
download | wireguard-monolithic-historical-ca392c705e19977abaa280d309685a1c62c937d4.tar.xz wireguard-monolithic-historical-ca392c705e19977abaa280d309685a1c62c937d4.zip |
DQL trial 1jd/cpu-dql
Diffstat (limited to 'src/device.h')
-rw-r--r-- | src/device.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/device.h b/src/device.h index 047fdf5..9e6c70e 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/dynamic_queue_limits.h> struct wireguard_device; @@ -24,6 +25,7 @@ struct handshake_worker { struct crypt_queue { struct list_head list; struct work_struct work; + struct dql dql; atomic_t qlen; }; @@ -38,7 +40,7 @@ struct wireguard_device { struct workqueue_struct *handshake_receive_wq, *handshake_send_wq, *packet_crypt_wq; struct sk_buff_head incoming_handshakes; struct crypt_queue __percpu *send_queue, *receive_queue; - int incoming_handshake_cpu, encrypt_cpu, decrypt_cpu; + int incoming_handshake_cpu; struct handshake_worker __percpu *incoming_handshakes_worker; struct cookie_checker cookie_checker; struct pubkey_hashtable peer_hashtable; |