summaryrefslogtreecommitdiffstats
path: root/src/wireguard/router/constants.rs
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2019-12-16 16:53:23 +0100
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2019-12-16 16:53:23 +0100
commitf8f404c8717fb23fec922f35163937ab01962396 (patch)
treedbeca8c0e0469859e6fd113fafeac6d1fa1f5059 /src/wireguard/router/constants.rs
parentClean dead code (diff)
downloadwireguard-rs-f8f404c8717fb23fec922f35163937ab01962396.tar.xz
wireguard-rs-f8f404c8717fb23fec922f35163937ab01962396.zip
Constant renamed to be consistent with kernel WG
Diffstat (limited to 'src/wireguard/router/constants.rs')
-rw-r--r--src/wireguard/router/constants.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wireguard/router/constants.rs b/src/wireguard/router/constants.rs
index 82360bb..af76299 100644
--- a/src/wireguard/router/constants.rs
+++ b/src/wireguard/router/constants.rs
@@ -1,9 +1,9 @@
// WireGuard semantics constants
-pub const MAX_STAGED_PACKETS: usize = 128;
+pub const MAX_QUEUED_PACKETS: usize = 1024;
// performance constants
-pub const PARALLEL_QUEUE_SIZE: usize = 256;
-pub const INORDER_QUEUE_SIZE: usize = PARALLEL_QUEUE_SIZE;
+pub const PARALLEL_QUEUE_SIZE: usize = MAX_QUEUED_PACKETS;
+pub const INORDER_QUEUE_SIZE: usize = MAX_QUEUED_PACKETS;
pub const MAX_INORDER_CONSUME: usize = INORDER_QUEUE_SIZE;