Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.7 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1FC54C432C0 for ; Mon, 18 Nov 2019 07:50:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EB35F20679 for ; Mon, 18 Nov 2019 07:50:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="D3jTOVkz" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726765AbfKRHuj (ORCPT ); Mon, 18 Nov 2019 02:50:39 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:37385 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726317AbfKRHuh (ORCPT ); Mon, 18 Nov 2019 02:50:37 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id DD7D422220; Mon, 18 Nov 2019 02:50:36 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 18 Nov 2019 02:50:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=cr3pCcmjyMzyQs1WC+cdUeObtOZy5C4FkYNLUtFOv1I=; b=D3jTOVkz a2G+ET/cdZ9PlAcMQyHx2ydJZ1rrDqlDvzT7JVFnRlMf65MX0AwoOH+Xt+QsDq1n e6olSc+5CCq9uU8VvPVWB5/c471+aj4po9aPq/MLGyMi9mBR3SpBuAxdk0JicmzV ey1dqurLh1n+kUzo3JLukvFFsz7BhCheRZp1yJl6Ruk0H4Q2pJOeJX3FNxe9ibBw zpW8Lk3GQh+FXRP+ouhxWF5qGw6b0eMPMK+bduvSmd94iPd/PBCEfqRLy+4Wl6r5 I0eMb/9XRh7d5UbMjXrs+ww8baAi1NXxYtVlAMwKLwFfbyUQiyuHUZyOTw/0j9eO LuU4pTkLrD9NYw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudeggedguddugecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepkfguohcu ufgthhhimhhmvghluceoihguohhstghhsehiughoshgthhdrohhrgheqnecukfhppedule efrdegjedrudeihedrvdehudenucfrrghrrghmpehmrghilhhfrhhomhepihguohhstghh sehiughoshgthhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from splinter.mtl.com (unknown [193.47.165.251]) by mail.messagingengine.com (Postfix) with ESMTPA id 724CB3060061; Mon, 18 Nov 2019 02:50:35 -0500 (EST) From: Ido Schimmel To: netdev@vger.kernel.org Cc: davem@davemloft.net, andrew@lunn.ch, f.fainelli@gmail.com, mlxsw@mellanox.com, Danielle Ratson , Ido Schimmel Subject: [PATCH net-next 2/5] selftests: mlxsw: Check devlink device before running test Date: Mon, 18 Nov 2019 09:49:59 +0200 Message-Id: <20191118075002.1699-3-idosch@idosch.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191118075002.1699-1-idosch@idosch.org> References: <20191118075002.1699-1-idosch@idosch.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Danielle Ratson The scale test for Spectrum-2 should only be invoked for Spectrum-2. Skip the test otherwise. Signed-off-by: Danielle Ratson Signed-off-by: Ido Schimmel --- .../selftests/drivers/net/mlxsw/spectrum-2/resource_scale.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/resource_scale.sh b/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/resource_scale.sh index 27a712a5ed8e..7b2acba82a49 100755 --- a/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/resource_scale.sh +++ b/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/resource_scale.sh @@ -8,6 +8,11 @@ source $lib_dir/lib.sh source $lib_dir/tc_common.sh source $lib_dir/devlink_lib.sh +if [ "$DEVLINK_VIDDID" != "15b3:cf6c" ]; then + echo "SKIP: test is tailored for Mellanox Spectrum-2" + exit 1 +fi + current_test="" cleanup() -- 2.21.0