tcp: adjust rcvbuf in presence of reorders
authorEric Dumazet <edumazet@google.com>
Tue, 13 May 2025 19:39:11 +0000 (19:39 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 15 May 2025 18:30:08 +0000 (11:30 -0700)
commit63ad7dfedfaee60d9ab40f9f2ec4fb488fa9b1ec
tree130a060e4c238fb6d03c59a53ca3c2b5352932c3
parent65c5287892e9a881e41758cbf071df6ec9c24a76
tcp: adjust rcvbuf in presence of reorders

This patch takes care of the needed provisioning
when incoming packets are stored in the out of order queue.

This part was not implemented in the correct way, we need
to decouple it from tcp_rcv_space_adjust() logic.

Without it, stalls in the pipe could happen.

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