From: Thomas Young Date: Wed, 4 Jan 2006 21:59:32 +0000 (-0800) Subject: [TCP] tcp_vegas: Fix slow start X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=74cb8798222bb7d1aecb0acb91e6eeedf5feb948;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [TCP] tcp_vegas: Fix slow start Vegas' slow start was only adding one MSS per RTT rather than one for every ack. Slow start behavior should now match Reno. Signed-off-by: Thomas Young Signed-off-by: David S. Miller --- diff --git a/net/ipv4/tcp_vegas.c b/net/ipv4/tcp_vegas.c index 13e7e6e8df1..3b740349505 100644 --- a/net/ipv4/tcp_vegas.c +++ b/net/ipv4/tcp_vegas.c @@ -330,6 +330,10 @@ static void tcp_vegas_cong_avoid(struct sock *sk, u32 ack, vegas->cntRTT = 0; vegas->minRTT = 0x7fffffff; } + /* Use normal slow start */ + else if (tp->snd_cwnd <= tp->snd_ssthresh) + tcp_slow_start(tp); + } /* Extract info for Tcp socket info provided via netlink. */