diff options
author | William Allen Simpson <william.allen.simpson@gmail.com> | 2009-11-10 09:51:18 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-13 20:38:48 -0800 |
commit | bee7ca9ec03a26676ea2b1c28dc4039348eff3e1 (patch) | |
tree | 652832d73252d7c9ede928a4242763f570070b0e /net/ipv6 | |
parent | cbbef5e183079455763fc470ccf69008f92ab4b6 (diff) | |
download | linux-stable-bee7ca9ec03a26676ea2b1c28dc4039348eff3e1.tar.gz linux-stable-bee7ca9ec03a26676ea2b1c28dc4039348eff3e1.tar.bz2 linux-stable-bee7ca9ec03a26676ea2b1c28dc4039348eff3e1.zip |
net: TCP_MSS_DEFAULT, TCP_MSS_DESIRED
Define two symbols needed in both kernel and user space.
Remove old (somewhat incorrect) kernel variant that wasn't used in
most cases. Default should apply to both RMSS and SMSS (RFC2581).
Replace numeric constants with defined symbols.
Stand-alone patch, originally developed for TCPCT.
Signed-off-by: William.Allen.Simpson@gmail.com
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/tcp_ipv6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 696a22f034e8..de709091b26d 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c @@ -1851,7 +1851,7 @@ static int tcp_v6_init_sock(struct sock *sk) */ tp->snd_ssthresh = TCP_INFINITE_SSTHRESH; tp->snd_cwnd_clamp = ~0; - tp->mss_cache = 536; + tp->mss_cache = TCP_MSS_DEFAULT; tp->reordering = sysctl_tcp_reordering; |