aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/device.h
diff options
context:
space:
mode:
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);