mirror of https://git.zx2c4.com/wireguard-rs
3 changed files with 7 additions and 6 deletions
@ -1,9 +1,9 @@ |
|||||||
// WireGuard semantics constants
|
// WireGuard semantics constants
|
||||||
|
|
||||||
pub const MAX_STAGED_PACKETS: usize = 128; |
pub const MAX_QUEUED_PACKETS: usize = 1024; |
||||||
|
|
||||||
// performance constants
|
// performance constants
|
||||||
|
|
||||||
pub const PARALLEL_QUEUE_SIZE: usize = 256; |
pub const PARALLEL_QUEUE_SIZE: usize = MAX_QUEUED_PACKETS; |
||||||
pub const INORDER_QUEUE_SIZE: usize = PARALLEL_QUEUE_SIZE; |
pub const INORDER_QUEUE_SIZE: usize = MAX_QUEUED_PACKETS; |
||||||
pub const MAX_INORDER_CONSUME: usize = INORDER_QUEUE_SIZE; |
pub const MAX_INORDER_CONSUME: usize = INORDER_QUEUE_SIZE; |
||||||
|
|||||||
Loading…
Reference in new issue