summaryrefslogtreecommitdiffstatshomepage
path: root/src/peer.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-11-06 12:12:20 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2016-11-06 12:12:20 +0100
commit7cc2e9953226d80e1fe20bbf51d5e5fdd00851f4 (patch)
tree56dc2ef465a1af6c1edb2fe2464fbe42b8c9945d /src/peer.h
parentchacha20poly1305: cleanup magic constants (diff)
downloadwireguard-monolithic-historical-7cc2e9953226d80e1fe20bbf51d5e5fdd00851f4.tar.xz
wireguard-monolithic-historical-7cc2e9953226d80e1fe20bbf51d5e5fdd00851f4.zip
data: we care about per-peer, not per-device, inflight encryptions
Diffstat (limited to '')
-rw-r--r--src/peer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/peer.h b/src/peer.h
index f68d7f0..895eb77 100644
--- a/src/peer.h
+++ b/src/peer.h
@@ -40,6 +40,9 @@ struct wireguard_peer {
struct rcu_head rcu;
struct list_head peer_list;
uint64_t internal_id;
+#ifdef CONFIG_WIREGUARD_PARALLEL
+ atomic_t parallel_encryption_inflight;
+#endif
};
struct wireguard_peer *peer_create(struct wireguard_device *wg, const u8 public_key[NOISE_PUBLIC_KEY_LEN]);