From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Borkmann Subject: Re: [PATCH bpf-next] selftests/bpf: Test sys_connect BPF hooks with TFO Date: Wed, 27 Jun 2018 11:28:32 +0200 Message-ID: <2a83e656-db3e-d7ed-2a18-e6cacbe5cfa6@iogearbox.net> References: <20180626212241.3298872-1-rdna@fb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: ast@kernel.org, kernel-team@fb.com To: Andrey Ignatov , netdev@vger.kernel.org Return-path: Received: from www62.your-server.de ([213.133.104.62]:42671 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753088AbeF0J2e (ORCPT ); Wed, 27 Jun 2018 05:28:34 -0400 In-Reply-To: <20180626212241.3298872-1-rdna@fb.com> Content-Language: en-US Sender: netdev-owner@vger.kernel.org List-ID: 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 has BPF hooks for sys_connect. > > That means TFO is already covered by BPF_CGROUP_INET{4,6}_CONNECT and > the only missing piece is selftest. The patch adds selftest for TFO. > > Signed-off-by: Andrey Ignatov Applied to bpf-next, thanks Andrey!