tcp: fix stretch ACK bugs in Yeah
authorPengcheng Yang <yangpc@wangsu.com>
Mon, 16 Mar 2020 06:35:11 +0000 (14:35 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Mar 2020 01:26:55 +0000 (18:26 -0700)
commitfa4cb9eba3c705bf2216fe238f25dfd0a9619d2e
tree249c0f7574af26c2b742b0aafd6123231cc8a9bf
parentca04f5d4bb79ef22b708ebb8ab147fc5abb25300
tcp: fix stretch ACK bugs in Yeah

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

In addition, we re-implemented the scalable path using
tcp_cong_avoid_ai() and removed the pkts_acked variable.

Signed-off-by: Pengcheng Yang <yangpc@wangsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_yeah.c