diff options
author | 2017-09-12 18:51:12 +0200 | |
---|---|---|
committer | 2017-09-15 22:09:16 +0200 | |
commit | 7183f5d0b13ca5527dc028283220708607052669 (patch) | |
tree | 120003fc872c5771855cee4dd43e72b292c68058 /src/device.h | |
parent | data: entirely rework parallel system (diff) | |
download | wireguard-monolithic-historical-7183f5d0b13ca5527dc028283220708607052669.tar.xz wireguard-monolithic-historical-7183f5d0b13ca5527dc028283220708607052669.zip |
data: reorganize and edit new queuing code
This involves many changes of Samuel's new system, in addition
to some TODOs for things that are not yet ideal.
Diffstat (limited to 'src/device.h')
-rw-r--r-- | src/device.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/device.h b/src/device.h index 1a75261..047fdf5 100644 --- a/src/device.h +++ b/src/device.h @@ -15,6 +15,7 @@ #include <linux/net.h> struct wireguard_device; + struct handshake_worker { struct wireguard_device *wg; struct work_struct work; @@ -34,20 +35,17 @@ struct wireguard_device { u32 fwmark; struct net *creating_net; struct noise_static_identity static_identity; - struct workqueue_struct *incoming_handshake_wq, *peer_wq; + struct workqueue_struct *handshake_receive_wq, *handshake_send_wq, *packet_crypt_wq; struct sk_buff_head incoming_handshakes; - atomic_t incoming_handshake_seqnr; + struct crypt_queue __percpu *send_queue, *receive_queue; + int incoming_handshake_cpu, encrypt_cpu, decrypt_cpu; struct handshake_worker __percpu *incoming_handshakes_worker; struct cookie_checker cookie_checker; struct pubkey_hashtable peer_hashtable; struct index_hashtable index_hashtable; struct routing_table peer_routing_table; struct list_head peer_list; - struct mutex device_update_lock; - struct mutex socket_update_lock; - struct workqueue_struct *crypt_wq; - int encrypt_cpu, decrypt_cpu; - struct crypt_queue __percpu *encrypt_queue, *decrypt_queue; + struct mutex device_update_lock, socket_update_lock; }; int device_init(void); |