Re: [RFC PATCH net] tcp: allow to use TCP Fastopen with MSG_ZEROCOPY

2018-04-04 Thread Willem de Bruijn
On Tue, Apr 3, 2018 at 2:43 PM, Alexey Kodanev wrote: > With TCP Fastopen we can have the following cases, which could also > use MSG_ZEROCOPY flag with send() and sendto(): > > * sendto() + MSG_FASTOPEN flag, sk state can be in TCP_CLOSE at > the start of tcp_sendmsg() > > * set socket option T

[RFC PATCH net] tcp: allow to use TCP Fastopen with MSG_ZEROCOPY

2018-04-03 Thread Alexey Kodanev
With TCP Fastopen we can have the following cases, which could also use MSG_ZEROCOPY flag with send() and sendto(): * sendto() + MSG_FASTOPEN flag, sk state can be in TCP_CLOSE at the start of tcp_sendmsg() * set socket option TCP_FASTOPEN_CONNECT, then connect() and send(), sk state in TCP_S