diff options
author | 2017-04-05 14:45:20 +0200 | |
---|---|---|
committer | 2017-04-08 01:49:32 +0200 | |
commit | 0a41cbc6d58faabf2d7f28c9323821255267827a (patch) | |
tree | f6ae23a4c82a4ab2ebd627cf4cc452a49ae4d5d5 /src/device.h | |
parent | data: simplify flow (diff) | |
download | wireguard-monolithic-historical-0a41cbc6d58faabf2d7f28c9323821255267827a.tar.xz wireguard-monolithic-historical-0a41cbc6d58faabf2d7f28c9323821255267827a.zip |
data: cleanup parallel workqueue and use two max_active
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); |