From 2e0774f246fb4fc1bd5cb44584d033038c89174e Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sun, 22 Oct 2023 02:12:13 +0200 Subject: [PATCH] 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 --- device/queueconstants_android.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 )