]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
tcp: fix SYN-data space mis-accounting
authorYuchung Cheng <ycheng@google.com>
Fri, 22 Feb 2013 08:59:06 +0000 (08:59 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Feb 2013 13:38:41 +0000 (05:38 -0800)
commit46983ccad157df0e6dfa910b5255de6ddee35f04
treef12bb138912869f3b7a4907423b1cc78c8694cf8
parent88bb40ba28f2ff6baf103b084eaaca8974b0a915
tcp: fix SYN-data space mis-accounting

[ Upstream commit 1b63edd6ecc55c3a61b40297b49e2323783bddfd ]

In fast open the sender unncessarily reduces the space available
for data in SYN by 12 bytes.  This is because in the sender
incorrectly reserves space for TS option twice in tcp_send_syn_data():
tcp_mtu_to_mss() already accounts for TS option space. But it further
reserves MAX_TCP_OPTION_SPACE when computing the payload space.

Signed-off-by: Yuchung Cheng <ycheng@google.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv4/tcp_output.c