aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2023-10-22 02:12:13 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2023-10-22 02:12:13 +0200
commit2e0774f246fb4fc1bd5cb44584d033038c89174e (patch)
tree03f1a8ea275f2a699ef25b75360be7ca83a0eaab
parentb3df23dcd40ba4568572f338f9fd16b87053fc29 (diff)
downloadwireguard-go-2e0774f246fb4fc1bd5cb44584d033038c89174e.tar.gz
wireguard-go-2e0774f246fb4fc1bd5cb44584d033038c89174e.zip
device: ratchet up max segment size on android
GRO requires big allocations to be efficient. This isn't great, as there might be Android memory usage issues. So we should revisit this commit. But at least it gets things working again. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--device/queueconstants_android.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/device/queueconstants_android.go b/device/queueconstants_android.go
index 3d80ead..25f700a 100644
--- a/device/queueconstants_android.go
+++ b/device/queueconstants_android.go
@@ -14,6 +14,6 @@ const (
QueueOutboundSize = 1024
QueueInboundSize = 1024
QueueHandshakeSize = 1024
- MaxSegmentSize = 2200
+ MaxSegmentSize = (1 << 16) - 1 // largest possible UDP datagram
PreallocatedBuffersPerPool = 4096
)