tcp: fix under-evaluated ssthresh in TCP Vegas
authorHoang Tran <tranviethoang.vn@gmail.com>
Wed, 27 Sep 2017 16:30:58 +0000 (18:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Dec 2017 13:22:15 +0000 (14:22 +0100)
commit1e52ede8e1ed95aec3cd3acaea48066cb34c238b
tree28eef6bc5bf1e7433615564c1bbd55dbb4a708d4
parentab8e096eed2f2a98e5200672720d5d46db50c80b
tcp: fix under-evaluated ssthresh in TCP Vegas

[ Upstream commit cf5d74b85ef40c202c76d90959db4d850f301b95 ]

With the commit 76174004a0f19785 (tcp: do not slow start when cwnd equals
ssthresh), the comparison to the reduced cwnd in tcp_vegas_ssthresh() would
under-evaluate the ssthresh.

Signed-off-by: Hoang Tran <hoang.tran@uclouvain.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/tcp_vegas.c