netdev
[Top] [All Lists]

Re: [TCP] Fixed mss in tcp_init_cwnd

To: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [TCP] Fixed mss in tcp_init_cwnd
From: Nivedita Singhvi <niv@xxxxxxxxxx>
Date: Mon, 27 Sep 2004 08:43:51 -0700
Cc: "David S. Miller" <davem@xxxxxxxxxxxxx>, netdev@xxxxxxxxxxx
In-reply-to: <20040927080828.GA12056@gondor.apana.org.au>
References: <20040927080828.GA12056@gondor.apana.org.au>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.1) Gecko/20040707
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


<Prev in Thread] Current Thread [Next in Thread>