Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 74cb8798 authored by Thomas Young's avatar Thomas Young Committed by David S. Miller
Browse files

[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: default avatarThomas Young <tyo@ee.mu.oz.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 93699863
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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. */