Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8175545rwp; Wed, 19 Jul 2023 06:22:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlGH5cStB9/+4ARVdCRS/qv7yGgRlvj7p5N+XrBsfeMfDdDNMQJMbE3DN1hD7U6EVM7MTZOP X-Received: by 2002:a05:6a00:2e8c:b0:682:4e4c:48bc with SMTP id fd12-20020a056a002e8c00b006824e4c48bcmr4284185pfb.21.1689772922200; Wed, 19 Jul 2023 06:22:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689772922; cv=none; d=google.com; s=arc-20160816; b=ij1jU5G6kz8GkLlZrhAVuIv/CyvhgJnaUpPoZtr2epEJsCTMpMfrpv6WzXJK2xED7+ v5Kzph8m+7napAusjE8gxu9uEXyzUMZdDq7Rkw02JXRzRLywbQLB8DPFWH8x5BqoLJuR sYX/on6Fy5VLglLmagDWC5g/Xq+u1G5iFREN2Qk9LJNOUR8RkE1tUHTBDe7gGANaIegP of3oNtF72pj1TBrSVt5/0hakmlPScYGnDyahKLhSDbid8/ihWutmgCyDL94nvM016a9T iDLNQ4VcB6B1JIyuREtlC6xcoLu/jD46JWh8YhfI2XPU2g1iQffbOkvbjl7QADPh4ZWf J30w== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature; bh=siYFJLdfTwI4Hsjetwx60OIcBExO9uyJZ22N85nYicM=; fh=SwRm9wI/Wn+K0UqKJOwzIT00ixh+lY79ZmMB3jBai/4=; b=fRxfy8IFR6k5YAFCJtFnW2JSNrfF58rrh2Qwsg2jFZNJpMBraEjrDdn6URhgZAWBk/ +LKyaogIhuO+H31AOc9Y/r9JUNdWu9fYtZrdvuqrVgRUsm8G221q6fJkZJnQTAYlaBXE 5HtCrwUaCBBSLv/+M6n7cSe5ctCsKrwUsuU89K4KBufvsLotQ6opYyUpURAcyaj7MUs2 8uiYbCGad0IMWCcAQHwo+JsVoDQDmp8S9NBFVDra3BDsHQFLBjRSNzfDgx22alPK/eUg wrbecyhtGFz6WsXOGC3ku9uU0DckFTnqma8SN/fvc/y+8UHTFiMbVPT5atNamDTUV8pb jbXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=EyhLIFk3; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f18-20020a056a001ad200b00675f3892a4dsi3409852pfv.304.2023.07.19.06.21.32; Wed, 19 Jul 2023 06:22:02 -0700 (PDT) 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=@messagingengine.com header.s=fm3 header.b=EyhLIFk3; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230429AbjGSNFZ (ORCPT + 99 others); Wed, 19 Jul 2023 09:05:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230444AbjGSNFX (ORCPT ); Wed, 19 Jul 2023 09:05:23 -0400 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A16D21986; Wed, 19 Jul 2023 06:05:20 -0700 (PDT) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 1DBE45C0145; Wed, 19 Jul 2023 09:05:20 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Wed, 19 Jul 2023 09:05:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1689771920; x=1689858320; bh=siYFJLdfTwI4H sjetwx60OIcBExO9uyJZ22N85nYicM=; b=EyhLIFk3QZGbzPk9a/2CsQl+bWSkx +rf5EUc8oHC0kqo0iPXtwSKCKWvopRnD27quu1ojrRkVJv1XSyKruCCxu3TSv+ht 7Z3ndflYqWdO44tQ980vujHnyzGeWRPUdpuf0t9ObDGPw6hFLCcggxfHD9RetcN4 f2WQXNEzdp271oELA8NQiRmaZwZoY++Uz+rx5Rgsd0mwG5A7UZSNFNgnYZIRHTQ5 Sz35NUnbdyD/RvEbWGVceo48O18exJU8GVBX1l6f7mtRA37P1cG13Ci/mn6KheRJ 051ysczjv8Ys4qqn1zXplhEqwXdcF0Wu9iVSOWeul1LeNkSHCn8sX1sYg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrgeekgdeggecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfhfgggtuggjsehttdortddttddvnecuhfhrohhmpefkughoucfu tghhihhmmhgvlhcuoehiughoshgthhesihguohhstghhrdhorhhgqeenucggtffrrghtth gvrhhnpeffueevhffhuddvjeetfeeuudfgheegledvveehheeuueduvdehgedtteefheeg feenucffohhmrghinhepkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepihguohhstghhsehiughoshgthhdrohhrgh X-ME-Proxy: Feedback-ID: i494840e7:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 19 Jul 2023 09:05:18 -0400 (EDT) Date: Wed, 19 Jul 2023 16:05:16 +0300 From: Ido Schimmel To: Mirsad Todorovac Cc: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan , Nikolay Aleksandrov , Ido Schimmel , Petr Machata , linux-kernel@vger.kernel.org Subject: Re: [PROBLEM] selftests: net/forwarding/bridge_mdb.sh: 'Command "replace" is unknown, try "bridge mdb help"' Message-ID: References: <6b04b2ba-2372-6f6b-3ac8-b7cba1cfae83@alu.unizg.hr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6b04b2ba-2372-6f6b-3ac8-b7cba1cfae83@alu.unizg.hr> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE,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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 18, 2023 at 09:02:31PM +0200, Mirsad Todorovac wrote: > Command "replace" is unknown, try "bridge mdb help". You are running the test with an old iproute2 that doesn't support the replace command. The following patches [1][2] skip the tests in this case. However, you will get better test coverage with iproute2-next [3] compared to the version shipped with your distribution. [1] diff --git a/tools/testing/selftests/net/forwarding/bridge_mdb.sh b/tools/testing/selftests/net/forwarding/bridge_mdb.sh index ae3f9462a2b6..a1bd4900acb6 100755 --- a/tools/testing/selftests/net/forwarding/bridge_mdb.sh +++ b/tools/testing/selftests/net/forwarding/bridge_mdb.sh @@ -1206,6 +1206,12 @@ ctrl_test() ctrl_mldv2_is_in_test } +bridge mdb help 2>&1 | grep -q "replace" +if [ $? -ne 0 ]; then + echo "SKIP: iproute2 too old, missing bridge mdb replace support" + exit $ksft_skip +fi + trap cleanup EXIT setup_prepare [2] diff --git a/tools/testing/selftests/net/forwarding/bridge_mdb_max.sh b/tools/testing/selftests/net/forwarding/bridge_mdb_max.sh index ae255b662ba3..a1c4aec4cbb1 100755 --- a/tools/testing/selftests/net/forwarding/bridge_mdb_max.sh +++ b/tools/testing/selftests/net/forwarding/bridge_mdb_max.sh @@ -1328,6 +1328,12 @@ test_8021qvs() switch_destroy } +bridge link help 2>&1 | grep -q "mcast_max_groups" +if [ $? -ne 0 ]; then + echo "SKIP: iproute2 too old, missing bridge \"mcast_max_groups\" support" + exit $ksft_skip +fi + trap cleanup EXIT setup_prepare [3] https://git.kernel.org/pub/scm/network/iproute2/iproute2-next.git