Subject: Re: [TCP] Fixed mss in tcp_init_cwnd

From: Nivedita Singhvi <[email-masked]>
Date: Mon, 27 Sep 2004 08:43:51 -0700

Herbert Xu wrote:

> ===== net/ipv4/tcp_input.c 1.73 vs edited =====
> --- 1.73/net/ipv4/tcp_input.c	2004-09-13 10:30:58 +10:00
> +++ edited/net/ipv4/tcp_input.c	2004-09-27 17:00:32 +10:00
> @@ -799,10 +799,10 @@
>  	__u32 cwnd = (dst ? dst_metric(dst, RTAX_INITCWND) : 0);
>  
>  	if (!cwnd) {
> -		if (tp->mss_cache > 1460)
> +		if (tp->mss_cache_std > 1460)
>  			cwnd = 2;
>  		else
> -			cwnd = (tp->mss_cache > 1095) ? 3 : 4;
> +			cwnd = (tp->mss_cache_std > 1095) ? 3 : 4;
>  	}
>  	return min_t(__u32, cwnd, tp->snd_cwnd_clamp);
>  }

Helps to send after finishing commenting..

I fixed this locally but was still seeing poor throughput,
though it does correct how many we initially/on restart send out.
Thought this was fixed in the bk tree?

thanks,
Nivedita