diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-04-05 14:45:20 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-04-08 01:49:32 +0200 |
commit | 0136e8870974b8fa92030d80064f1a4549bfab46 (patch) | |
tree | 7afc886f043cdcd57617a41deb6cc87e952b3160 /src/device.h | |
parent | ad05185de7870e47ae1b5b6a4b32cb31d2d9e155 (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.h | 8 |
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); |