diff options
author | Samuel Holland <samuel@sholland.org> | 2017-06-07 01:39:08 -0500 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-09-15 22:00:49 +0200 |
commit | e1fead9769303cf160addfb9f16f8f9fda1ff617 (patch) | |
tree | 9c6243ccb33866c9d068dca827ac403b67bbc361 /src/peer.h | |
parent | qemu: enable debug info for debug qemu (diff) | |
download | wireguard-monolithic-historical-e1fead9769303cf160addfb9f16f8f9fda1ff617.tar.xz wireguard-monolithic-historical-e1fead9769303cf160addfb9f16f8f9fda1ff617.zip |
data: entirely rework parallel system
This removes our dependency on padata.
Signed-off-by: Samuel Holland <samuel@sholland.org>
Diffstat (limited to 'src/peer.h')
-rw-r--r-- | src/peer.h | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -3,6 +3,7 @@ #ifndef PEER_H #define PEER_H +#include "device.h" #include "noise.h" #include "cookie.h" @@ -46,17 +47,15 @@ struct wireguard_peer { unsigned long persistent_keepalive_interval; bool timers_enabled; bool timer_need_another_keepalive; - bool need_resend_queue; bool sent_lastminute_handshake; struct timeval walltime_last_handshake; - struct sk_buff_head tx_packet_queue; struct kref refcount; struct rcu_head rcu; struct list_head peer_list; u64 internal_id; -#ifdef CONFIG_WIREGUARD_PARALLEL - atomic_t parallel_encryption_inflight; -#endif + int work_cpu; + struct crypt_queue init_queue, send_queue, receive_queue; + spinlock_t init_queue_lock; }; struct wireguard_peer *peer_create(struct wireguard_device *wg, const u8 public_key[NOISE_PUBLIC_KEY_LEN], const u8 preshared_key[NOISE_SYMMETRIC_KEY_LEN]); |