aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/peer.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-09-12 18:51:12 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2017-09-15 22:09:16 +0200
commit7183f5d0b13ca5527dc028283220708607052669 (patch)
tree120003fc872c5771855cee4dd43e72b292c68058 /src/peer.h
parentdata: entirely rework parallel system (diff)
downloadwireguard-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/peer.h')
-rw-r--r--src/peer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/peer.h b/src/peer.h
index 90a394f..78cbb61 100644
--- a/src/peer.h
+++ b/src/peer.h
@@ -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]);