Re: [PATCH bpf-next] selftests/bpf: Test sys_connect BPF hooks with TFO

2018-06-27 Thread Daniel Borkmann
On 06/26/2018 11:22 PM, Andrey Ignatov wrote: > TCP Fast Open is triggered by sys_sendmsg with MSG_FASTOPEN flag for > SOCK_STREAM socket. > > Even though it's sys_sendmsg, it eventually calls __inet_stream_connect > the same way sys_connect does for TCP. __inet_stream_connect, in turn, > already

[PATCH bpf-next] selftests/bpf: Test sys_connect BPF hooks with TFO

2018-06-26 Thread Andrey Ignatov
TCP Fast Open is triggered by sys_sendmsg with MSG_FASTOPEN flag for SOCK_STREAM socket. Even though it's sys_sendmsg, it eventually calls __inet_stream_connect the same way sys_connect does for TCP. __inet_stream_connect, in turn, already has BPF hooks for sys_connect. That means TFO is already