Skip to content

Commit

Permalink
[TCP] Vegas: Remove extra call to tcp_vegas_rtt_calc
Browse files Browse the repository at this point in the history
Remove unneeded call to tcp_vegas_rtt_calc. The more accurate
microsecond value has already been registered prior to calling
tcp_vegas_cong_avoid.

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 Dec 7, 2005
1 parent 5b49561 commit 0d7bef6
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions net/ipv4/tcp_vegas.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,14 +215,6 @@ static void tcp_vegas_cong_avoid(struct sock *sk, u32 ack,
vegas->beg_snd_nxt = tp->snd_nxt;
vegas->beg_snd_cwnd = tp->snd_cwnd;

/* Take into account the current RTT sample too, to
* decrease the impact of delayed acks. This double counts
* this sample since we count it for the next window as well,
* but that's not too awful, since we're taking the min,
* rather than averaging.
*/
tcp_vegas_rtt_calc(sk, seq_rtt * 1000);

/* We do the Vegas calculations only if we got enough RTT
* samples that we can be reasonably sure that we got
* at least one RTT sample that wasn't from a delayed ACK.
Expand Down

0 comments on commit 0d7bef6

Please sign in to comment.