]> git.ipfire.org Git - thirdparty/linux.git/commit
tcp: refine sk_rcvbuf increase for ooo packets
authorEric Dumazet <edumazet@google.com>
Mon, 7 Jul 2025 21:38:59 +0000 (21:38 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 10 Jul 2025 02:24:10 +0000 (19:24 -0700)
commit1a03edeb84e6e3b9c6ca5a642557bced93d54434
tree70214311353feee546f842e1629027ae359b5648
parentffdde7bf5a439aaa1955ebd581f5c64ab1533963
tcp: refine sk_rcvbuf increase for ooo packets

When a passive flow has not been accepted yet, it is
not wise to increase sk_rcvbuf when receiving ooo packets.

A very busy server might tune down tcp_rmem[1] to better
control how much memory can be used by sockets waiting
in its listeners accept queues.

Fixes: 63ad7dfedfae ("tcp: adjust rcvbuf in presence of reorders")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250707213900.1543248-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/tcp_input.c