git: baeff75122e5 - main - tcp: bump max rcv buffer size for autoscaling

From: Michael Tuexen <tuexen_at_FreeBSD.org>
Date: Thu, 16 Oct 2025 16:54:55 UTC
The branch main has been updated by tuexen:

URL: https://cgit.FreeBSD.org/src/commit/?id=baeff75122e5cdb669c920414e054224270383d7

commit baeff75122e5cdb669c920414e054224270383d7
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2025-10-15 20:24:51 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2025-10-15 20:24:51 +0000

    tcp: bump max rcv buffer size for autoscaling
    
    This allows in higher throughput values with default settings.
    In the review I was proposing using 16 MB, but in the transport
    call today we settled on a more conservative value of 8.
    Bumping it further will be done in combination with mitigations
    for mbuf exhaustion attacks.
    
    Reviewed by:            rscheff, Peter Lei, jtl, thj
    MFC after:              3 days
    Sponsored by:           Netflix, Inc.
    Differential Revision:  https://reviews.freebsd.org/D52871
---
 sys/netinet/tcp_input.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index dd27ec77c1af..2146b0cac48f 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -219,7 +219,7 @@ SYSCTL_INT(_net_inet_tcp, OID_AUTO, recvbuf_auto, CTLFLAG_VNET | CTLFLAG_RW,
     &VNET_NAME(tcp_do_autorcvbuf), 0,
     "Enable automatic receive buffer sizing");
 
-VNET_DEFINE(int, tcp_autorcvbuf_max) = 2*1024*1024;
+VNET_DEFINE(int, tcp_autorcvbuf_max) = 8*1024*1024;
 SYSCTL_INT(_net_inet_tcp, OID_AUTO, recvbuf_max, CTLFLAG_VNET | CTLFLAG_RW,
     &VNET_NAME(tcp_autorcvbuf_max), 0,
     "Max size of automatic receive buffer");