]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Feb 2013 20:10:19 +0000 (15:10 -0500)
commit42db8ed93f47615e6fa47900dd03c2ad7686a32e
tree6572656aae76924fe38380e3edb650dd5965ef26
parent2bb8233c860e798024f87dd235e0e6cd32b967c3
tcp: fix SYN-data space mis-accounting

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>
net/ipv4/tcp_output.c