On Tue, 06 Dec 2005 15:40:57 +1100
Tom Young <[EMAIL PROTECTED]> wrote:

> 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 <[EMAIL PROTECTED]>
> ---
> 
> diff --git a/net/ipv4/tcp_vegas.c b/net/ipv4/tcp_vegas.c
> --- a/net/ipv4/tcp_vegas.c
> +++ b/net/ipv4/tcp_vegas.c
> @@ -215,14 +215,6 @@ static void tcp_vegas_cong_avoid(struct 
>               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.

This was in the original code, but it can go.

-- 
Stephen Hemminger <[EMAIL PROTECTED]>
OSDL http://developer.osdl.org/~shemminger
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to