tcp: fix stretch ACK bugs in Scalable
authorPengcheng Yang <yangpc@wangsu.com>
Mon, 16 Mar 2020 06:35:08 +0000 (14:35 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Mar 2020 01:26:54 +0000 (18:26 -0700)
commit5415e3c37a657f7b400ece28e73a6f6c6cc371c4
treef1ba3fe5fede1b2ead7306607cc7240d60ab6be7
parentbe0d935ebfe59130b393bc442e1801e523b43fc6
tcp: fix stretch ACK bugs in Scalable

Change Scalable to properly handle stretch ACKs in additive
increase mode by passing in the count of ACKed packets to
tcp_cong_avoid_ai().

In addition, because we are now precisely accounting for
stretch ACKs, including delayed ACKs, we can now change
TCP_SCALABLE_AI_CNT to 100.

Signed-off-by: Pengcheng Yang <yangpc@wangsu.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_scalable.c