diff options
author | Thomas Young <tyo@ee.mu.oz.au> | 2005-12-06 19:16:34 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-12-06 19:16:34 -0500 |
commit | 5b4956138173cb8b58d83d3173360e8e681a2b66 (patch) | |
tree | 5dc8d539a6d7deff6ab595ce90657bb16e6731f9 /net/ipv4/tcp_vegas.c | |
parent | 1f12bcc9d1840fd26bf577065214f1ebeb2609ba (diff) |
[TCP] Vegas: stop resetting rtt every ack
Move the resetting of rtt measurements to inside the once per RTT
block of code.
Signed-off-by: Thomas Young <tyo@ee.mu.oz.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_vegas.c')
-rw-r--r-- | net/ipv4/tcp_vegas.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv4/tcp_vegas.c b/net/ipv4/tcp_vegas.c index b7d296a8ac6d..8f06a479305b 100644 --- a/net/ipv4/tcp_vegas.c +++ b/net/ipv4/tcp_vegas.c | |||
@@ -333,11 +333,11 @@ static void tcp_vegas_cong_avoid(struct sock *sk, u32 ack, | |||
333 | else if (tp->snd_cwnd > tp->snd_cwnd_clamp) | 333 | else if (tp->snd_cwnd > tp->snd_cwnd_clamp) |
334 | tp->snd_cwnd = tp->snd_cwnd_clamp; | 334 | tp->snd_cwnd = tp->snd_cwnd_clamp; |
335 | } | 335 | } |
336 | } | ||
337 | 336 | ||
338 | /* Wipe the slate clean for the next RTT. */ | 337 | /* Wipe the slate clean for the next RTT. */ |
339 | vegas->cntRTT = 0; | 338 | vegas->cntRTT = 0; |
340 | vegas->minRTT = 0x7fffffff; | 339 | vegas->minRTT = 0x7fffffff; |
340 | } | ||
341 | } | 341 | } |
342 | 342 | ||
343 | /* Extract info for Tcp socket info provided via netlink. */ | 343 | /* Extract info for Tcp socket info provided via netlink. */ |