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:36:33 -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:
Hi Dave:

The MSS in tcp_init_cwnd should be the real one instead of the TSO value.

Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>

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);
}


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