From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B0DDC38145 for ; Fri, 2 Sep 2022 15:52:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237430AbiIBPwu (ORCPT ); Fri, 2 Sep 2022 11:52:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237433AbiIBPwY (ORCPT ); Fri, 2 Sep 2022 11:52:24 -0400 Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AD1518B37 for ; Fri, 2 Sep 2022 08:44:32 -0700 (PDT) Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id E20CB24002C for ; Fri, 2 Sep 2022 17:44:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1662133470; bh=smFYOenZzqawXSK94gpzdplWB4M1WgA4Yl+z23nc79E=; h=Date:From:To:Cc:Subject:From; b=hWZY+z7kOKEabQQqgvWFmxZRfgX3Rl5BXtnfydJlLAwIbOjWKhQiPCmYJZPdVDeJQ DO9pKzvIsFWzvTJ1K3iHCfCUIy/vWpWmCEW9sIXlalqT5Pdcn6p0r5/9ViNQVLo52r ZF3dGxH1Umajt70QAT0xsnSYYDB1coxfHuCssQCpRpolMsd8nE3AtXBo+hi4nDM6tT G6fEmKudgbAOJ+wevnOQO7Sf9xatmWeIBKX5+GFO6l2FT4upvzyQjxOYSlUrT/MY+G gWuFUFWxxBWLoLwol0PGOBUeeRDFbrU4wzJeukSA/a3v/25/iiLIj7m44rogjwSjFH qQD+u8lQ1N/ew== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MK2K42hXXz6tmJ; Fri, 2 Sep 2022 17:44:24 +0200 (CEST) Date: Fri, 2 Sep 2022 15:44:20 +0000 From: Daniel =?utf-8?Q?M=C3=BCller?= To: Daniel Borkmann Cc: Lorenzo Bianconi , Lorenzo Bianconi , bpf@vger.kernel.org, netdev@vger.kernel.org, ast@kernel.org, andrii@kernel.org, davem@davemloft.net, kuba@kernel.org, edumazet@google.com, pabeni@redhat.com, pablo@netfilter.org, fw@strlen.de, netfilter-devel@vger.kernel.org, brouer@redhat.com, toke@redhat.com, memxor@gmail.com Subject: Re: [PATCH bpf-next 0/4] Introduce bpf_ct_set_nat_info kfunc helper Message-ID: <20220902154420.wpox77fwlamul444@nuc> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org On Fri, Sep 02, 2022 at 04:41:28PM +0200, Daniel Borkmann wrote: > On 9/2/22 4:35 PM, Lorenzo Bianconi wrote: > > On Sep 02, Daniel Borkmann wrote: > > > On 9/1/22 6:43 PM, Lorenzo Bianconi wrote: > > > > Introduce bpf_ct_set_nat_info kfunc helper in order to set source and > > > > destination nat addresses/ports in a new allocated ct entry not inserted > > > > in the connection tracking table yet. > > > > Introduce support for per-parameter trusted args. > > > > > > > > Kumar Kartikeya Dwivedi (2): > > > > bpf: Add support for per-parameter trusted args > > > > selftests/bpf: Extend KF_TRUSTED_ARGS test for __ref annotation > > > > > > > > Lorenzo Bianconi (2): > > > > net: netfilter: add bpf_ct_set_nat_info kfunc helper > > > > selftests/bpf: add tests for bpf_ct_set_nat_info kfunc > > > > > > > > Documentation/bpf/kfuncs.rst | 18 +++++++ > > > > kernel/bpf/btf.c | 39 ++++++++++----- > > > > net/bpf/test_run.c | 9 +++- > > > > net/netfilter/nf_conntrack_bpf.c | 49 ++++++++++++++++++- > > > > .../testing/selftests/bpf/prog_tests/bpf_nf.c | 2 + > > > > .../testing/selftests/bpf/progs/test_bpf_nf.c | 26 +++++++++- > > > > tools/testing/selftests/bpf/verifier/calls.c | 38 +++++++++++--- > > > > 7 files changed, 156 insertions(+), 25 deletions(-) > > > > > > > > > > Looks like this fails BPF CI, ptal: > > > > > > https://github.com/kernel-patches/bpf/runs/8147936670?check_suite_focus=true > > > > Hi Daniel, > > > > it seems CONFIG_NF_NAT is not set in the kernel config file. > > Am I supposed to enable it in bpf-next/tools/testing/selftests/bpf/config? > > This would have to be set there and added to the patches, yes. @Andrii/DanielM, is > this enough or are other steps needed on top of that? Yes, I think it should be set at said location. Nothing else should be needed in addition that I can think of. Thanks, Daniel [...]