tcp: fix sk_rcvbuf overshoot
authorEric Dumazet <edumazet@google.com>
Tue, 13 May 2025 19:39:10 +0000 (19:39 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 15 May 2025 18:30:08 +0000 (11:30 -0700)
commit65c5287892e9a881e41758cbf071df6ec9c24a76
tree7776d47aeb29ac97b639bb9ebd326c2a98d368e8
parentc1269d3d12b88151ee4c109624b5022d53a11738
tcp: fix sk_rcvbuf overshoot

Current autosizing in tcp_rcv_space_adjust() is too aggressive.

Instead of betting on possible losses and over estimate BDP,
it is better to only account for slow start.

The following patch is then adding a more precise tuning
in the events of packet losses.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250513193919.1089692-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/tcp_input.c