From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrey Ignatov Subject: [PATCH bpf-next 0/6] TCP-BPF callback for listening sockets Date: Wed, 11 Jul 2018 17:33:31 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Cc: Andrey Ignatov , , , , To: Return-path: Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:36126 "EHLO mx0b-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388601AbeGLAlD (ORCPT ); Wed, 11 Jul 2018 20:41:03 -0400 Received: from pps.filterd (m0109332.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w6C0XvN9013217 for ; Wed, 11 Jul 2018 17:34:10 -0700 Received: from mail.thefacebook.com ([199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 2k5s6fggd6-2 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 11 Jul 2018 17:34:10 -0700 Sender: netdev-owner@vger.kernel.org List-ID: This patchset adds TCP-BPF callback for listening sockets. Patch 0001 provides more details and is the main patch in the set. Patch 0006 adds selftest for the new callback. Other patches are bug fixes and improvements in TCP-BPF selftest to make it easier to extend in 0006. Andrey Ignatov (6): bpf: Add BPF_SOCK_OPS_TCP_LISTEN_CB bpf: Sync bpf.h to tools/ selftests/bpf: Fix const'ness in cgroup_helpers selftests/bpf: Switch test_tcpbpf_user to cgroup_helpers selftests/bpf: Better verification in test_tcpbpf selftests/bpf: Test case for BPF_SOCK_OPS_TCP_LISTEN_CB include/uapi/linux/bpf.h | 3 + net/ipv4/af_inet.c | 1 + tools/include/uapi/linux/bpf.h | 3 + tools/testing/selftests/bpf/Makefile | 1 + tools/testing/selftests/bpf/cgroup_helpers.c | 6 +- tools/testing/selftests/bpf/cgroup_helpers.h | 6 +- tools/testing/selftests/bpf/test_tcpbpf.h | 1 + .../testing/selftests/bpf/test_tcpbpf_kern.c | 17 ++- .../testing/selftests/bpf/test_tcpbpf_user.c | 119 +++++++++--------- 9 files changed, 88 insertions(+), 69 deletions(-) -- 2.17.1