From 0a41cbc6d58faabf2d7f28c9323821255267827a Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 5 Apr 2017 14:45:20 +0200 Subject: data: cleanup parallel workqueue and use two max_active --- src/device.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/device.h') 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); -- cgit v1.2.3-59-g8ed1b