Skip to content

Commit 0d7bef6

Browse files
Thomas Youngdavem330
Thomas Young
authored andcommitted
[TCP] Vegas: Remove extra call to tcp_vegas_rtt_calc
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>
1 parent 5b49561 commit 0d7bef6

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

net/ipv4/tcp_vegas.c

-8
Original file line numberDiff line numberDiff line change
@@ -215,14 +215,6 @@ static void tcp_vegas_cong_avoid(struct sock *sk, u32 ack,
215215
vegas->beg_snd_nxt = tp->snd_nxt;
216216
vegas->beg_snd_cwnd = tp->snd_cwnd;
217217

218-
/* Take into account the current RTT sample too, to
219-
* decrease the impact of delayed acks. This double counts
220-
* this sample since we count it for the next window as well,
221-
* but that's not too awful, since we're taking the min,
222-
* rather than averaging.
223-
*/
224-
tcp_vegas_rtt_calc(sk, seq_rtt * 1000);
225-
226218
/* We do the Vegas calculations only if we got enough RTT
227219
* samples that we can be reasonably sure that we got
228220
* at least one RTT sample that wasn't from a delayed ACK.

0 commit comments

Comments
 (0)