Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2570297rdb; Mon, 4 Dec 2023 00:53:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IFYrv+OGYLheDhVyAzBxwMSe71tqGWOPHPKVIKyO3fXbx1LC2ceEQwZ9yxAzU3IBREVOLcK X-Received: by 2002:a05:6358:71c8:b0:170:3429:3fc9 with SMTP id u8-20020a05635871c800b0017034293fc9mr318263rwu.46.1701679985568; Mon, 04 Dec 2023 00:53:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701679985; cv=none; d=google.com; s=arc-20160816; b=A7zfq7VqUy+m20N3VIktOKkjdQpaPlEU9lmMiXoRFOKSKGIZDVQp6jmyP/G28WluFu EusQtUdJD0SRXZcdTGI9C1xQP+SEcyVfkfvucUXL59XCpBWVMQMTRenNRE8Tzn5SuBLN 0NaF9EymIHO3Joi9JaUJay9cMRx29UiaFsQu052ROHgel+vMm9qQiReZf1HWGeNQypq/ z1xH+8zhr+dCwzB067m9sERIgNNVE2qk3p3sVWZ8+oQRmP3dGT3nruxylBLcNvgIkNo8 HEkQwhrkEb1mP/nPQq71E5QLHK6FJ9HsXQk3avSTNyGsI8LuS13vTy3ZhgYYUw24ERXn Veqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-filter; bh=6LGB45I5byCoMEvvTmFWKfhjgGrm1+u7IAc5pF3fXcc=; fh=jmelgNP5RUIdDsEXIC8RyEgjub417IFxuPF/279rTQo=; b=nDY1LfCPUXKKYTB6YYUM4Xf1K2JGnkU9EFul/QLxHfG9ebYCK8/Ri4jHR5LrrD8WMB ypc7twKiczuU5MTtSMIkSiL024q8N59s5XqQ6eMm3SNc6R3GAC5JHh4GhShiadjcfQtM aBcxE0HsocsHYah9N30iPwBBWpo9lj5LMSy24Yhf2XombaQzbxMvva2YGtQ0DA6CqKLz LQ6WhFImq507RoFKaeRqsYZ0gMzYF4opcjD4kDzYya952sxOxqc3KOUfG4ykkkZJnihN WBfwSfkCWML3YJcYwdE+RRZ/DBa4h3EujrdyHy7Ow3c5R1nlv+LAxrMTx7sMeZi+6iGn 60DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@secunet.com header.s=202301 header.b=KwWu3Bpt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id y192-20020a638ac9000000b005c65f10c216si3503657pgd.287.2023.12.04.00.53.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 00:53:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@secunet.com header.s=202301 header.b=KwWu3Bpt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 4F09180A1E10; Mon, 4 Dec 2023 00:53:02 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229686AbjLDIwj (ORCPT + 99 others); Mon, 4 Dec 2023 03:52:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234725AbjLDIZo (ORCPT ); Mon, 4 Dec 2023 03:25:44 -0500 Received: from a.mx.secunet.com (a.mx.secunet.com [62.96.220.36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 320DFFE; Mon, 4 Dec 2023 00:25:50 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by a.mx.secunet.com (Postfix) with ESMTP id E4AA3204D9; Mon, 4 Dec 2023 09:25:47 +0100 (CET) X-Virus-Scanned: by secunet Received: from a.mx.secunet.com ([127.0.0.1]) by localhost (a.mx.secunet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hvPwaSxxYUiK; Mon, 4 Dec 2023 09:25:47 +0100 (CET) Received: from mailout2.secunet.com (mailout2.secunet.com [62.96.220.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by a.mx.secunet.com (Postfix) with ESMTPS id 4C40920078; Mon, 4 Dec 2023 09:25:47 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 a.mx.secunet.com 4C40920078 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secunet.com; s=202301; t=1701678347; bh=6LGB45I5byCoMEvvTmFWKfhjgGrm1+u7IAc5pF3fXcc=; h=Date:From:To:CC:Subject:References:In-Reply-To:From; b=KwWu3BptcKE5mMLWl8mHeIi9qJxIyxohZ3pyPiU8GufgBcZRy11AsRCirUPTY3RQ5 VCuwAOdD4D+GLjwzzqx1CbPm/IV7UUyKjO5zDaHy7JJ76KnHdWhkYiJBa1+jQVCd8/ WhCMr8qRJOI7Oe6Z6dM/unK4csL4qMFT2PaB9f4kbIaooD4Ks7XPzx6bo99hCXx/Pv B9U4v3BDF/XeDlHwKkMgRtWDKt0SX0DWReAbIC1e+0lAfqcmxD1TmpeUi6WkrEFUHl D0oGMrMRGiFTY9e/9xvWryQ0LkLVPlrF2/+GQIVr9TUbardkk3RRGkhURoBQiqNKzU 5owz2QNMth0Qg== Received: from cas-essen-02.secunet.de (unknown [10.53.40.202]) by mailout2.secunet.com (Postfix) with ESMTP id 164F580004A; Mon, 4 Dec 2023 09:25:47 +0100 (CET) Received: from mbx-essen-02.secunet.de (10.53.40.198) by cas-essen-02.secunet.de (10.53.40.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Mon, 4 Dec 2023 09:25:46 +0100 Received: from gauss2.secunet.de (10.182.7.193) by mbx-essen-02.secunet.de (10.53.40.198) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Mon, 4 Dec 2023 09:25:46 +0100 Received: by gauss2.secunet.de (Postfix, from userid 1000) id 49F6131811E6; Mon, 4 Dec 2023 09:25:46 +0100 (CET) Date: Mon, 4 Dec 2023 09:25:46 +0100 From: Steffen Klassert To: Daniel Xu CC: Alexei Starovoitov , Network Development , LKML , bpf , clang-built-linux , "open list:KERNEL SELFTEST FRAMEWORK" , , Yonghong Song , Eddy Z , , Eyal Birger Subject: Re: [PATCH ipsec-next v3 0/9] Add bpf_xdp_get_xfrm_state() kfunc Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-ClientProxiedBy: cas-essen-02.secunet.de (10.53.40.202) To mbx-essen-02.secunet.de (10.53.40.198) X-EXCLAIMER-MD-CONFIG: 2c86f778-e09b-4440-8b15-867914633a10 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 04 Dec 2023 00:53:02 -0800 (PST) On Fri, Dec 01, 2023 at 05:16:04PM -0700, Daniel Xu wrote: > On Fri, Dec 01, 2023 at 04:10:18PM -0800, Alexei Starovoitov wrote: > > On Fri, Dec 1, 2023 at 12:23 PM Daniel Xu wrote: > > > > > > include/net/xfrm.h | 9 + > > > net/xfrm/Makefile | 1 + > > > net/xfrm/xfrm_policy.c | 2 + > > > net/xfrm/xfrm_state_bpf.c | 128 ++++++++++++++ > > > tools/lib/bpf/bpf_core_read.h | 34 ++++ > > > .../selftests/bpf/prog_tests/test_tunnel.c | 162 +++++++++++++++++- > > > .../selftests/bpf/prog_tests/verifier.c | 2 + > > > tools/testing/selftests/bpf/progs/bpf_misc.h | 1 + > > > .../selftests/bpf/progs/bpf_tracing_net.h | 1 + > > > .../selftests/bpf/progs/test_tunnel_kern.c | 138 ++++++++------- > > > .../bpf/progs/verifier_bitfield_write.c | 100 +++++++++++ > > > tools/testing/selftests/bpf/test_loader.c | 7 + > > > tools/testing/selftests/bpf/test_tunnel.sh | 92 ---------- > > > 13 files changed, 522 insertions(+), 155 deletions(-) > > > > I really think this should go via bpf-next tree. > > The bpf changes are much bigger than ipsec. > > Ack. Ended up picking up a lot of stuff along the way. I'm fine with merging this via the bpf-next tree. Please consider to merge the bpf hepler functions to one file. We have already xfrm_interface_bpf.c and now you introduce xfrm_state_bpf.c. Try to merge this into a single xfrm_bpf.c file.