]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2a4e952deb0e9aaf852b6bb2767ae958c5876b09
tree552899d6aa52ca5e2d3f95b3cd938903b2822d48
parent841c714fc2a40632033f8cb5f24483148155d96b
tcp: restore fastopen with no data in SYN packet

Yuchung tracked a regression caused by commit 574d829a0afd ("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: 574d829a0afd ("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