]> 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)
commitb2e1d98efe52842d735b6227c9513e771d8991a1
tree6572656aae76924fe38380e3edb650dd5965ef26
parent31c04d4345260fedfc8089800cc2c91815d27dca
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