]> git.hungrycats.org Git - linux/commitdiff
[TCP]: Use mss_cache_std in tcp_init_metrics().
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 27 Sep 2004 15:00:18 +0000 (08:00 -0700)
committerDavid S. Miller <davem@nuts.davemloft.net>
Mon, 27 Sep 2004 15:00:18 +0000 (08:00 -0700)
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c

index 4019bccef42b19e82abcec6e82b0d66301918295..f0d888e2c2ab5e23da621dab5ab3cf08e6b82048 100644 (file)
@@ -802,10 +802,10 @@ __u32 tcp_init_cwnd(struct tcp_opt *tp, struct dst_entry *dst)
        __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);
 }