From patchwork Thu Oct 5 07:21:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geliang Tang X-Patchwork-Id: 13409822 X-Patchwork-Delegate: bpf@iogearbox.net Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 09FF1539E for ; Thu, 5 Oct 2023 07:21:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="HdEEZr1s" Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on20611.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1b::611]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26C467A97; Thu, 5 Oct 2023 00:21:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fekz4rfvdjDE5w3f28kP5ng2Yf+2XVTItCEbITWF0Mfe2JW/9n9pFu/ethT0VxHxC2NFWwUT7BoPWjYO7G0LWptmjSQ7Gg9nNqpADBb4KkPoBu1cXOVZ6S2qJKAkDilkjqc85rxCZc/5AeQ3mMtStoHDXNdzUdKVZPbArtETmoe6Q3ri+hjICCs+QNqGCSYiBdApX8GVe/wojEN8cR9Tt9t24UHkGN8u6wUVVUROkw7pj5FhBPEJoW0xB97bQ8A45SMk+mVndjnlNgGpkhQsLstIBXlmdbSYin9nd1yZ+1zv92BauJUlqIy6CSPjSEMD9Wl+yQ/3xT4G3WEw8Ecrmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=kVMQuwoQO5/3D87+dmoupZKTye3tTF6lYcDqr6ZiP3Y=; b=IuIH3gmk/nK7Nz1SK743gZM6lVCo56CXCZ9FQhRzG60iUht0sTXK1CDBv6t9zHlke7pOuGqiOfiBivf8nP4YdBUtHZLZsLBu1v+tVqvC0xNcQIhs4JJVpKVi3kxfNcm3B+czDmasaWYSYed57Gr8aNymQ+jizJmUkog+uvjCuXaFcS/5yvgDMRv6uqaJJKMJxcjSGHA8+fDF0wXvHIwNBntXv7mAX55ja77cxgaIgrVUW9gRug9GQUOjt3YVgIWKxWAWnefKDywxRalIfdbmK2gBPQAMiZKFDzORczu8785kbO5w3GdtpcnweeF6yhuFc7gybptFnBPu63Snv7QDlg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kVMQuwoQO5/3D87+dmoupZKTye3tTF6lYcDqr6ZiP3Y=; b=HdEEZr1so1glWio8mYRNKtb+uwbdy9fSzt6mxjos+HQMwgF0kNttAUdKrL+wUWcItOjDdLY1VbCTSmqYt5Hv70tGPcFPo/BXTa/cHx0YuvlSUJn+ZYlu0S65tcJm8uc51+D2jX1bBxgKmCqAm0gqd09wYC/fx/i4ZPSyE44x8m7qR4UimMUPKX9TXJTAMTwSX7IC8oO1If/ChkkaXeHFJpqkmB2t23zc/IbA3sNbyAJoSXXkx92MMAIMERwt0QiBo1NXPijPQTKX4DFvBjlwHvi34Q28yyr8143l8QHZ8vCRmEXU0bzhJVBRbcZ1PSm3A7J6IJG+qESUK3Ww3Qu/Rw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com; Received: from HE1PR0402MB3497.eurprd04.prod.outlook.com (2603:10a6:7:83::14) by DU2PR04MB8999.eurprd04.prod.outlook.com (2603:10a6:10:2e2::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.33; Thu, 5 Oct 2023 07:20:56 +0000 Received: from HE1PR0402MB3497.eurprd04.prod.outlook.com ([fe80::3852:4f89:9891:73c8]) by HE1PR0402MB3497.eurprd04.prod.outlook.com ([fe80::3852:4f89:9891:73c8%3]) with mapi id 15.20.6838.030; Thu, 5 Oct 2023 07:20:56 +0000 From: Geliang Tang To: Andrii Nakryiko , Mykola Lysenko , Alexei Starovoitov , Daniel Borkmann , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa Cc: Geliang Tang , bpf@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: [PATCH bpf-next v2 1/2] selftests/bpf: Enable CONFIG_VSOCKETS in config Date: Thu, 5 Oct 2023 15:21:51 +0800 Message-Id: <472e73d285db2ea59aca9bbb95eb5d4048327588.1696490003.git.geliang.tang@suse.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: References: X-ClientProxiedBy: SG2PR04CA0169.apcprd04.prod.outlook.com (2603:1096:4::31) To HE1PR0402MB3497.eurprd04.prod.outlook.com (2603:10a6:7:83::14) Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: HE1PR0402MB3497:EE_|DU2PR04MB8999:EE_ X-MS-Office365-Filtering-Correlation-Id: 4c967514-082f-44e8-63f5-08dbc5739d99 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ug+pWSZAvqLfeHbSGLXqsc+sNZEOCXzRCkH+Wo6IWpS9/ARkM5v0YuQQ8l+Hm8e/iDtQdxWgmxhjg/PCZBi5A4vkepNythMd0xVXZp/s+U7PcGDjP7Yv4gXW7AI0mQwFiHqbpdpfH9tS53YCkuMt/NNF5SERn7Gc17VILsAzFyroEJFdBUMWg8r9Y+OtrEeAvJmzpOBucS4aiuSTkM+xa2gAj7F4WCZWtxP5wmFFJtX6ZU2HTLnrK3y5P1CmTYGIkvO66vISIc/cBu9Zicj+oZs3u3r8Ntie0WQ4SrgfXpEjs86VWDdtMGP3szZuUwCSSErhHr5uVQvvw3/Tp3FlY0+ZlxOVTQhwP5y8MVtkif/Y/nsqkXuxNl6Qo+CQsLRx2cM0CcMJLkvZC0PjezPhzmIy7vn3Y03d1H0PPdu4xDuWmR2LrvVedGtqKTGWCVuAHA4BcnqBFrXrhF6fuE1xuIz+sb/RZlLSHEWJc4WCSSKLRM1BAH4IxliLUSFZsvxKB3e8WUv7hvGfvZijDLBQ5x7PcDJReF+MZB8vGMZXFinXpjE16WvxLq+7RFD3pUHo07tH8i7r5nOkwjPYyO6nzp58WsHGG8ggY7rJfoYEiP1IBMe3NWukGYOkpOViJUdE X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:HE1PR0402MB3497.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(376002)(396003)(346002)(366004)(39860400002)(230922051799003)(186009)(64100799003)(451199024)(1800799009)(44832011)(5660300002)(2906002)(7416002)(4744005)(6666004)(38100700002)(6506007)(6512007)(921005)(478600001)(86362001)(6486002)(36756003)(26005)(8676002)(8936002)(4326008)(66476007)(41300700001)(110136005)(66946007)(66556008)(316002)(2616005)(13296009);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: jCq1n8fMhECiPnuU04tlBz/DFCli93L0EMM1RINcvaeUMgWoubaXbXxg3Okp4DJ230YSuox0GXl+ncMQCJDHWUg1vDmRKJMPF6lP6uS+Ek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EonrkFSHmxNBFgRuTv8x9Ks/aq/Uwp+YSTwjyENLLqsN2q8lWWrA2lFBE7X0FGIIcDFCw3mCNBj04OizZqMxSg+r1ikP1Z6OekZ7BZqRUkYqd9Degq/nXG0/wkrL+nU4KWJTAEI+UJcQ7J5idS8Eh8nxIdnn1eLDMdhRrAtBjEIRIcZfxn4azuLrR12SY08fs1ks3bG2CUXcGxyLwhN/r7VUWcuZHPRHPHdM9XEjNO1rFbYxGtavwR0mfFgpYmUl/laBu1OhDZFxQ8+dQqkgnfxsGomfM4P1eJ10f4o8+dQzcxpie1lEnXtD0FWRdjiGIm0kVYTpqcoyjvHHqeO3zjajQYewNDLcs/mcWTg447msJ0C3w/0vPT4uFuyaWuCXtXah0bjWCGurRm5S9K00aocsEg0edk99btCMCAl X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4c967514-082f-44e8-63f5-08dbc5739d99 X-MS-Exchange-CrossTenant-AuthSource: HE1PR0402MB3497.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Oct 2023 07:20:56.0428 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: tt3SaHrCC/z+lY68r/RgCE/7t7ihi/PCZ6uDf7a/zAsSpX5ci+XunO14+AyFy7wdLXiEvuQC3kp1aZcWH+LK7g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8999 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Patchwork-Delegate: bpf@iogearbox.net CONFIG_VSOCKETS is required by BPF selftests, otherwise we get errors like this: ./test_progs:socket_loopback_reuseport:386: socket: Address family not supported by protocol socket_loopback_reuseport:FAIL:386 ./test_progs:vsock_unix_redir_connectible:1496: vsock_socketpair_connectible() failed vsock_unix_redir_connectible:FAIL:1496 So this patch enables it in tools/testing/selftests/bpf/config. Signed-off-by: Geliang Tang --- tools/testing/selftests/bpf/config | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/bpf/config b/tools/testing/selftests/bpf/config index e41eb33b2704..02dd4409200e 100644 --- a/tools/testing/selftests/bpf/config +++ b/tools/testing/selftests/bpf/config @@ -84,3 +84,4 @@ CONFIG_USERFAULTFD=y CONFIG_VXLAN=y CONFIG_XDP_SOCKETS=y CONFIG_XFRM_INTERFACE=y +CONFIG_VSOCKETS=y