From: Jason A. Donenfeld Date: Sun, 22 Oct 2023 00:12:13 +0000 (+0200) Subject: device: ratchet up max segment size on android X-Git-Tag: 0.0.20250515~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e0774f;p=thirdparty%2Fwireguard-go.git 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 --- 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 )