Skip to content

Commit

Permalink
[TCP] tcp_vegas: Fix slow start
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Young authored and David S. Miller committed Jan 4, 2006
1 parent 9369986 commit 74cb879
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions net/ipv4/tcp_vegas.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 74cb879

Please sign in to comment.