Commit 65bd66dc authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller

[TCP]: Use mss_cache_std in tcp_init_metrics().

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bf19f71b
...@@ -802,10 +802,10 @@ __u32 tcp_init_cwnd(struct tcp_opt *tp, struct dst_entry *dst) ...@@ -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); __u32 cwnd = (dst ? dst_metric(dst, RTAX_INITCWND) : 0);
if (!cwnd) { if (!cwnd) {
if (tp->mss_cache > 1460) if (tp->mss_cache_std > 1460)
cwnd = 2; cwnd = 2;
else 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); return min_t(__u32, cwnd, tp->snd_cwnd_clamp);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment