summaryrefslogtreecommitdiffhomepage
path: root/src/device.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-04-05 14:45:20 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-04-08 01:49:32 +0200
commit0136e8870974b8fa92030d80064f1a4549bfab46 (patch)
tree7afc886f043cdcd57617a41deb6cc87e952b3160 /src/device.h
parentad05185de7870e47ae1b5b6a4b32cb31d2d9e155 (diff)
data: cleanup parallel workqueue and use two max_active
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/device.h')
-rw-r--r--src/device.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/device.h b/src/device.h
index 855ec27..cdfb5f7 100644
--- a/src/device.h
+++ b/src/device.h
@@ -21,9 +21,7 @@ struct wireguard_device {
u16 incoming_port;
u32 fwmark;
struct net *creating_net;
- struct workqueue_struct *workqueue;
- struct workqueue_struct *parallelqueue;
- struct padata_instance *parallel_send, *parallel_receive;
+ struct workqueue_struct *handshake_wq;
struct noise_static_identity static_identity;
struct sk_buff_head incoming_handshakes;
struct work_struct incoming_handshakes_work;
@@ -37,6 +35,10 @@ struct wireguard_device {
#ifdef CONFIG_PM_SLEEP
struct notifier_block clear_peers_on_suspend;
#endif
+#ifdef CONFIG_WIREGUARD_PARALLEL
+ struct workqueue_struct *crypt_wq;
+ struct padata_instance *encrypt_pd, *decrypt_pd;
+#endif
};
int device_init(void);