netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [TCP] Fixed mss in tcp_init_cwnd
@ 2004-09-27  8:08 Herbert Xu
  2004-09-27 15:36 ` Nivedita Singhvi
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Herbert Xu @ 2004-09-27  8:08 UTC (permalink / raw)
  To: David S. Miller, netdev

[-- Attachment #1: Type: text/plain, Size: 360 bytes --]

Hi Dave:

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

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

[-- Attachment #2: p --]
[-- Type: text/plain, Size: 492 bytes --]

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-09-27 23:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-27  8:08 [TCP] Fixed mss in tcp_init_cwnd Herbert Xu
2004-09-27 15:36 ` Nivedita Singhvi
2004-09-27 15:43 ` Nivedita Singhvi
2004-09-27 19:00 ` David S. Miller
2004-09-27 22:02   ` Herbert Xu
2004-09-27 23:04     ` David S. Miller
2004-09-27 23:09       ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).