]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
[TCP] tcp_vegas: Fix slow start
authorThomas Young <tyo@ee.mu.oz.au>
Wed, 4 Jan 2006 21:59:32 +0000 (13:59 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Jan 2006 21:59:32 +0000 (13:59 -0800)
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 <tyo@ee.mu.oz.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_vegas.c

index 13e7e6e8df161ef009250b58c520717dfdf153cc..3b7403495052e31efb9bbaa4c33e740fd99685f2 100644 (file)
@@ -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. */