aboutsummaryrefslogtreecommitdiff
path: root/device/queueconstants_default.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2023-03-04 15:25:46 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2023-03-10 14:52:22 +0100
commitdbd949307e75bbd72d86e53aa57b74b20daab04d (patch)
tree2dac596a5125edc3a4149e37cd5a694b443c5a3c /device/queueconstants_default.go
parentf26efb65f23acbd88785d1ae793fa3264c999673 (diff)
downloadwireguard-go-dbd949307e75bbd72d86e53aa57b74b20daab04d.tar.gz
wireguard-go-dbd949307e75bbd72d86e53aa57b74b20daab04d.zip
conn: inch BatchSize toward being non-dynamic
There's not really a use at the moment for making this configurable, and once bind_windows.go behaves like bind_std.go, we'll be able to use constants everywhere. So begin that simplification now. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'device/queueconstants_default.go')
-rw-r--r--device/queueconstants_default.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/device/queueconstants_default.go b/device/queueconstants_default.go
index 7ed70a1..ea763d0 100644
--- a/device/queueconstants_default.go
+++ b/device/queueconstants_default.go
@@ -10,7 +10,7 @@ package device
import "golang.zx2c4.com/wireguard/conn"
const (
- QueueStagedSize = conn.DefaultBatchSize
+ QueueStagedSize = conn.IdealBatchSize
QueueOutboundSize = 1024
QueueInboundSize = 1024
QueueHandshakeSize = 1024