]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: do not call tcp_cleanup_rbuf() if we have a backlog
authorEric Dumazet <edumazet@google.com>
Mon, 15 Nov 2021 19:02:48 +0000 (11:02 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Nov 2021 13:10:35 +0000 (13:10 +0000)
commitc388a7ef88c565836a9c9b0ef952facc116bb4e3
treef3775856188c4864ad33c3b5fe1899c89ea115b7
parent9b0df294b6dd03475e1a4a7662a296b48fbbe187
tcp: do not call tcp_cleanup_rbuf() if we have a backlog

Under pressure, tcp recvmsg() has logic to process the socket backlog,
but calls tcp_cleanup_rbuf() right before.

Avoiding sending ACK right before processing new segments makes
a lot of sense, as this decrease the number of ACK packets,
with no impact on effective ACK clocking.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c