aboutsummaryrefslogtreecommitdiff
path: root/device
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
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')
-rw-r--r--device/queueconstants_android.go2
-rw-r--r--device/queueconstants_default.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/device/queueconstants_android.go b/device/queueconstants_android.go
index 1158387..3d80ead 100644
--- a/device/queueconstants_android.go
+++ b/device/queueconstants_android.go
@@ -10,7 +10,7 @@ import "golang.zx2c4.com/wireguard/conn"
/* Reduce memory consumption for Android */
const (
- QueueStagedSize = conn.DefaultBatchSize
+ QueueStagedSize = conn.IdealBatchSize
QueueOutboundSize = 1024
QueueInboundSize = 1024
QueueHandshakeSize = 1024
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