]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: add one more quick ack after after ECN events
authorEric Dumazet <edumazet@google.com>
Wed, 27 Jun 2018 15:47:21 +0000 (08:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Jun 2018 13:01:04 +0000 (22:01 +0900)
commit0ff51a71012edab8eaf25fcfdf7b31649bcab747
treedef3573e62862a41bb840c8fcdca92665484131c
parent4afcf3f6ce851809a7b784769566420a7f4d2ee2
tcp: add one more quick ack after after ECN events

Larry Brakmo proposal ( https://patchwork.ozlabs.org/patch/935233/
tcp: force cwnd at least 2 in tcp_cwnd_reduction) made us rethink
about our recent patch removing ~16 quick acks after ECN events.

tcp_enter_quickack_mode(sk, 1) makes sure one immediate ack is sent,
but in the case the sender cwnd was lowered to 1, we do not want
to have a delayed ack for the next packet we will receive.

Fixes: 2b2279e8b98a ("tcp: do not aggressively quick ack after ECN events")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: Neal Cardwell <ncardwell@google.com>
Cc: Lawrence Brakmo <brakmo@fb.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c