Eric Dumazet 6b9159a662 BACKPORT: 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>
[cyberknight777: backport to 4.14]
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Signed-off-by: Panchajanya1999 <panchajanya@azure-dev.live>
2022-02-06 23:50:49 +05:30
..
2020-05-20 08:17:12 +02:00
2019-12-05 15:38:15 +01:00
2020-01-17 19:45:49 +01:00