diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-09-12 18:51:12 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-09-15 01:50:11 +0200 |
commit | c2cb0a2013a338200b6aeda719bd01f1d89209e2 (patch) | |
tree | da958ec8bd9083a455a467aeb8f287c80ff349db /src/peer.h | |
parent | compat: add READ_ONCE/WRITE_ONCE for old kernels (diff) | |
download | wireguard-monolithic-historical-c2cb0a2013a338200b6aeda719bd01f1d89209e2.tar.xz wireguard-monolithic-historical-c2cb0a2013a338200b6aeda719bd01f1d89209e2.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/peer.h')
-rw-r--r-- | src/peer.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -53,9 +53,10 @@ struct wireguard_peer { struct rcu_head rcu; struct list_head peer_list; u64 internal_id; - int work_cpu; struct crypt_queue init_queue, send_queue, receive_queue; spinlock_t init_queue_lock; + atomic_t is_draining; + int serial_work_cpu; }; 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]); |