From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nivedita Singhvi Subject: Re: [TCP] Fixed mss in tcp_init_cwnd Date: Mon, 27 Sep 2004 08:36:33 -0700 Sender: netdev-bounce@oss.sgi.com Message-ID: <41583381.9090003@us.ibm.com> References: <20040927080828.GA12056@gondor.apana.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: "David S. Miller" , netdev@oss.sgi.com Return-path: To: Herbert Xu In-Reply-To: <20040927080828.GA12056@gondor.apana.org.au> Errors-to: netdev-bounce@oss.sgi.com List-Id: netdev.vger.kernel.org Herbert Xu wrote: > Hi Dave: > > The MSS in tcp_init_cwnd should be the real one instead of the TSO value. > > Signed-off-by: Herbert Xu > > Cheers, > > > ------------------------------------------------------------------------ > > ===== 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); > }