Commit d0a2b134 authored by Artem Germanov's avatar Artem Germanov Committed by Greg Kroah-Hartman

tcp: cwnd does not increase in TCP YeAH

[ Upstream commit db7196a0 ]

Commit 76174004
(tcp: do not slow start when cwnd equals ssthresh )
introduced regression in TCP YeAH. Using 100ms delay 1% loss virtual
ethernet link kernel 4.2 shows bandwidth ~500KB/s for single TCP
connection and kernel 4.3 and above (including 4.8-rc4) shows bandwidth
~100KB/s.
   That is caused by stalled cwnd when cwnd equals ssthresh. This patch
fixes it by proper increasing cwnd in this case.
Signed-off-by: default avatarArtem Germanov <agermanov@anchorfree.com>
Acked-by: default avatarDmitry Adamushko <d.adamushko@anchorfree.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 28186a5c
...@@ -76,7 +76,7 @@ static void tcp_yeah_cong_avoid(struct sock *sk, u32 ack, u32 acked) ...@@ -76,7 +76,7 @@ static void tcp_yeah_cong_avoid(struct sock *sk, u32 ack, u32 acked)
if (!tcp_is_cwnd_limited(sk)) if (!tcp_is_cwnd_limited(sk))
return; return;
if (tp->snd_cwnd <= tp->snd_ssthresh) if (tcp_in_slow_start(tp))
tcp_slow_start(tp, acked); tcp_slow_start(tp, acked);
else if (!yeah->doing_reno_now) { else if (!yeah->doing_reno_now) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment