summaryrefslogtreecommitdiffhomepage
path: root/src/messages.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-06-07 01:39:08 -0500
committerJason A. Donenfeld <Jason@zx2c4.com>2017-09-18 17:38:16 +0200
commit0d341761c44739f9c53128fd3e101f83fe60b969 (patch)
tree1ce7852d663aa916295c4b1b369f3c1ee8bca1f1 /src/messages.h
parent9ffe12e8d9742baf02b08236ed5c4b0de807434a (diff)
queue: entirely rework parallel system
This removes our dependency on padata and moves to a different mode of multiprocessing that is more efficient. This began as Samuel Holland's GSoC project and was gradually reworked/redesigned/rebased into this present commit, which is a combination of his initial contribution and my subsequent rewriting and redesigning. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/messages.h')
-rw-r--r--src/messages.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/messages.h b/src/messages.h
index 2c0658d..490a773 100644
--- a/src/messages.h
+++ b/src/messages.h
@@ -49,8 +49,9 @@ enum limits {
MAX_PEERS_PER_DEVICE = 1 << 20,
KEEPALIVE_TIMEOUT = 10 * HZ,
MAX_TIMER_HANDSHAKES = (90 * HZ) / REKEY_TIMEOUT,
- MAX_QUEUED_INCOMING_HANDSHAKES = 4096,
- MAX_QUEUED_OUTGOING_PACKETS = 1024
+ MAX_QUEUED_INCOMING_HANDSHAKES = 4096, /* TODO: replace this with DQL */
+ MAX_STAGED_PACKETS = 1024,
+ MAX_QUEUED_PACKETS = 1024 /* TODO: replace this with DQL */
};
enum message_type {