tcp: restore fastopen with no data in SYN packet
authorEric Dumazet <edumazet@google.com>
Wed, 16 Dec 2015 21:53:10 +0000 (13:53 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Dec 2015 20:37:39 +0000 (15:37 -0500)
commit07e100f984975cb0417a7d5e626d0409efbad478
tree552899d6aa52ca5e2d3f95b3cd938903b2822d48
parent3822b5c2fc62e3de8a0f33806ff279fb7df92432
tcp: restore fastopen with no data in SYN packet

Yuchung tracked a regression caused by commit 57be5bdad759 ("ip: convert
tcp_sendmsg() to iov_iter primitives") for TCP Fast Open.

Some Fast Open users do not actually add any data in the SYN packet.

Fixes: 57be5bdad759 ("ip: convert tcp_sendmsg() to iov_iter primitives")
Reported-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c