Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2180005rwb; Mon, 7 Nov 2022 10:05:00 -0800 (PST) X-Google-Smtp-Source: AMsMyM5X8Jf/XZWF/ofjugQbiHKlqunDq1yLta3CZk3p3RW2+flfFJACgsF8XHTz48rg6Ey7eE3U X-Received: by 2002:a50:ccc2:0:b0:460:4db2:5006 with SMTP id b2-20020a50ccc2000000b004604db25006mr51657644edj.369.1667844299746; Mon, 07 Nov 2022 10:04:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667844299; cv=none; d=google.com; s=arc-20160816; b=sRo/c62XyETPxDXKim/B8kit3dEXyj+OEE3WOU8qHr6MHxCUNAoY4s3hLvwgVG1i+W UvXK6aZfPzDlPaAZv3NJ/PgrlQ5hF7d4/fEz7fRIyf+1LqD8Cfi5bfW/Y6+V5jakisfk b4jIMjtLkbJG+lMz9M4qra/hIsxQMDwol50KB4IzXVSbVjf5VM5/d0YiJYOcXDE2b1ES EMZfPUMJlxclBVcA+uNUmxg4Nl4/q3a8sddeneFWwWScDy9+CGLPDnodM2ax4ue7IyhD zuyRXCQaKe9dSRNqUnuXOBA7GzjpSG1xoR6CYHzP8rM9ZBPY+n3LvhccRlHvBIli1AhA +8yw== 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; bh=ZxvB21U7ffK/ecK/q1ZIEVSixPqXCPc7RxNt+GQfPzE=; b=Qn85kfnZaJ+6vmVVTsztelxGU9poV+c6VzB1ayBq/vpvft/ZBsvpKbFm3ORL74InrQ Zm8YiQNnteiMQBTs9xHogO87BCF35LR8wcAI9UsA8WDvUCr4mYv6sCHq1GiCwx/JOQXK qhq4eCC0bgwpWpJm4iQF3UY44ibZ+yMD5vw98Vib69kmOmN8iqodlT3FD5GchgBbqZIH W3zZBlVR3s0iS1mERV0T3Cgn9F27kCfZz+BmZ5akhQF8E0u2A0lLWIc+YOE7C9YCMvz/ Kr3UVw25mZTzh08palX2MKbftk04psIO9gZcp3HexnbPaER4U6kkq+MzjnT1sMmefG7b cPWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=SPRH4rRU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qf42-20020a1709077f2a00b007701a050273si10687668ejc.942.2022.11.07.10.04.34; Mon, 07 Nov 2022 10:04:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@posteo.net header.s=2017 header.b=SPRH4rRU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=posteo.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231403AbiKGRnL (ORCPT + 92 others); Mon, 7 Nov 2022 12:43:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232965AbiKGRnF (ORCPT ); Mon, 7 Nov 2022 12:43:05 -0500 Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.66]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E265B24088 for ; Mon, 7 Nov 2022 09:43:03 -0800 (PST) Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 6FACE240105 for ; Mon, 7 Nov 2022 18:43:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667842982; bh=3Zd2LzTn35gGPZH57ZQu9I2pZQgysxz4Yi4s55fsDAA=; h=Date:From:To:Cc:Subject:From; b=SPRH4rRUnoiSw1sMFZVGvbd4orWrduz7iu/JNsrZC07JbOcMP3A3OWNU+KbIliydx dwJIn0lrFX7IcE045BPxvTqFpBpZ1lqYuEDeCbwTGtPYUI1kI0TFenVGCEmoeOG5XE S1jpGNVvtiMkg2l6Xi2Bb8dGk/XfplNGgnkguDqdu7q7UrpJFK9kAn7W1crVaTmZjT h+Xb/eGTY6fD82Q5CrXsNQOU7hI1dA4QF8iYUldGtaYxC1xwCdtncmAcYD23DzaDa6 PAX1iRDXxCH2zi/1xfPK6mskDp1ConSBCUscivKBJnYhK1r/vqrfkVt2kn7ocpoY5A 90D7mKzHHhNAg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N5dqM3Y1fz6tpl; Mon, 7 Nov 2022 18:42:55 +0100 (CET) Date: Mon, 7 Nov 2022 17:42:52 +0000 From: Daniel =?utf-8?Q?M=C3=BCller?= To: Andrea Mayer Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Mykola Lysenko , Shuah Khan , bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Stefano Salsano , Paolo Lungaroni , Ahmed Abdelsalam Subject: Re: [net] seg6: selftests/bpf: fix BPF object file name in test_lwt_seg6local.sh Message-ID: <20221107174252.7ycgyedc575ojs4l@muellerd-fedora-PC2BDTX9> References: <20221107143044.27763-1-andrea.mayer@uniroma2.it> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221107143044.27763-1-andrea.mayer@uniroma2.it> 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_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrea, On Mon, Nov 07, 2022 at 03:30:44PM +0100, Andrea Mayer wrote: > The test_lwt_seg6local.c implements several eBPF programs which are > used to test the SRv6 End.BPF behavior. > Since commit afef88e65554 ("selftests/bpf: Store BPF object files with > .bpf.o extension"), part of the build system and test programs loading > BPF object files are supposed to work with the .bpf.o extension. > > Consequently, the test_lwt_seg6local.c is compiled into > test_lwt_seg6local.bpf.o and the corresponding test_lwt_seg6local.sh > script is not updated to deal with the correct .bpf.o extension. > > This patch fixes the test_lwt_seg6local.sh, using the correct .bpf.o > extension for the testing BPF object file, i.e. test_lwt_seg6local.bpf.o. > > Fixes: afef88e65554 ("selftests/bpf: Store BPF object files with .bpf.o extension") > Signed-off-by: Andrea Mayer > --- > tools/testing/selftests/bpf/test_lwt_seg6local.sh | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/tools/testing/selftests/bpf/test_lwt_seg6local.sh b/tools/testing/selftests/bpf/test_lwt_seg6local.sh > index 826f4423ce02..bfe76ab78481 100755 > --- a/tools/testing/selftests/bpf/test_lwt_seg6local.sh > +++ b/tools/testing/selftests/bpf/test_lwt_seg6local.sh > @@ -117,18 +117,18 @@ ip netns exec ${NS6} ip -6 addr add fb00::109/16 dev veth10 scope link > ip netns exec ${NS1} ip -6 addr add fb00::1/16 dev lo > ip netns exec ${NS1} ip -6 route add fb00::6 dev veth1 via fb00::21 > > -ip netns exec ${NS2} ip -6 route add fb00::6 encap bpf in obj test_lwt_seg6local.o sec encap_srh dev veth2 > +ip netns exec ${NS2} ip -6 route add fb00::6 encap bpf in obj test_lwt_seg6local.bpf.o sec encap_srh dev veth2 > ip netns exec ${NS2} ip -6 route add fd00::1 dev veth3 via fb00::43 scope link > > ip netns exec ${NS3} ip -6 route add fc42::1 dev veth5 via fb00::65 > -ip netns exec ${NS3} ip -6 route add fd00::1 encap seg6local action End.BPF endpoint obj test_lwt_seg6local.o sec add_egr_x dev veth4 > +ip netns exec ${NS3} ip -6 route add fd00::1 encap seg6local action End.BPF endpoint obj test_lwt_seg6local.bpf.o sec add_egr_x dev veth4 > > -ip netns exec ${NS4} ip -6 route add fd00::2 encap seg6local action End.BPF endpoint obj test_lwt_seg6local.o sec pop_egr dev veth6 > +ip netns exec ${NS4} ip -6 route add fd00::2 encap seg6local action End.BPF endpoint obj test_lwt_seg6local.bpf.o sec pop_egr dev veth6 > ip netns exec ${NS4} ip -6 addr add fc42::1 dev lo > ip netns exec ${NS4} ip -6 route add fd00::3 dev veth7 via fb00::87 > > ip netns exec ${NS5} ip -6 route add fd00::4 table 117 dev veth9 via fb00::109 > -ip netns exec ${NS5} ip -6 route add fd00::3 encap seg6local action End.BPF endpoint obj test_lwt_seg6local.o sec inspect_t dev veth8 > +ip netns exec ${NS5} ip -6 route add fd00::3 encap seg6local action End.BPF endpoint obj test_lwt_seg6local.bpf.o sec inspect_t dev veth8 > > ip netns exec ${NS6} ip -6 addr add fb00::6/16 dev lo > ip netns exec ${NS6} ip -6 addr add fd00::4/16 dev lo The change looks good to me. Thanks for the fix. Daniel Acked-by: Daniel M?ller