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
commit6e96d730778ede3be025d0badc7af7478bd988a1 (patch)
treeb34cc5884850ae7f48823fca6d77810481745f9d /src/peer.h
parentchacha20poly1305: cleanup magic constants (diff)
downloadwireguard-linux-compat-6e96d730778ede3be025d0badc7af7478bd988a1.tar.xz
wireguard-linux-compat-6e96d730778ede3be025d0badc7af7478bd988a1.zip
data: we care about per-peer, not per-device, inflight encryptions
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/peer.h')
-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]);