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=-3.7 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=no 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 6A784C4CECE for ; Thu, 17 Oct 2019 06:56:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3ED9520872 for ; Thu, 17 Oct 2019 06:56:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="nsroYq53" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392672AbfJQG4M (ORCPT ); Thu, 17 Oct 2019 02:56:12 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:53711 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389363AbfJQG4L (ORCPT ); Thu, 17 Oct 2019 02:56:11 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 9EB3520D12; Thu, 17 Oct 2019 02:56:10 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 17 Oct 2019 02:56:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=//FuUEmNiq9wd5eek x6chat7AKEHAXd3eiaIqMeusec=; b=nsroYq53ubVbY4in8sVkjMh0g9l0A1V+d LJeXhXDHO0Q3mYBOATUF0xCkbutuRfPFPI6g3DFvUDt0JsbGrZ0XnmnQ/2E2h0md eQuxHbNMutTWwUGGrg7W/2NETZ/m64qPjZLtMdbQNdwPQCKrs89N1qLOCv9A2Mr/ nxBfJNOkslLXbHR+n/91j2UAfNy0+hycH7PN1NolnSKQQBWaWbhCNLjDzKnAYLt4 /gKSXjm1kGYmKsV0KGsMibiFfn7jqxmy4+4mM+LrU+6xzHWjSeFty+itKtUcQUGv Zmpx16x2D25OO/pFwQmNzk8uyN1AeDGw5jpXa5zf/WUogOg54nx8Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrjeeigdduuddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkofgggfestdekredtre dttdenucfhrhhomhepkfguohcuufgthhhimhhmvghluceoihguohhstghhsehiughoshgt hhdrohhrgheqnecukfhppeduleefrdegjedrudeihedrvdehudenucfrrghrrghmpehmrg hilhhfrhhomhepihguohhstghhsehiughoshgthhdrohhrghenucevlhhushhtvghrufhi iigvpedt X-ME-Proxy: Received: from splinter.mtl.com (unknown [193.47.165.251]) by mail.messagingengine.com (Postfix) with ESMTPA id D3EAAD60057; Thu, 17 Oct 2019 02:56:08 -0400 (EDT) From: Ido Schimmel To: netdev@vger.kernel.org Cc: davem@davemloft.net, jiri@mellanox.com, danieller@mellanox.com, mlxsw@mellanox.com, Ido Schimmel Subject: [PATCH net-next 0/5] selftests: mlxsw: Add scale tests for Spectrum-2 Date: Thu, 17 Oct 2019 09:55:13 +0300 Message-Id: <20191017065518.27008-1-idosch@idosch.org> X-Mailer: git-send-email 2.21.0 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: Ido Schimmel This series from Danielle adds two scale tests for the Spectrum-2 ASIC. The first scale test (patches #1-#4) validates the number of mirroring sessions (using tc-mirred) that can be supported by the device. As a preparatory step, patch #1 exposes the maximum number and current usage of mirroring agents via devlink-resource. This allows us to avoid hard-coding the limits later in the test. The second scale test (patch #5) validates the number of tc-flower filters that can be supported by the device. Danielle Ratson (5): mlxsw: spectrum: Register switched port analyzers (SPAN) as resource selftests: mlxsw: Generalize the parameters of mirror_gre test selftests: mlxsw: Add Spectrum-2 mirror-to-gretap target scale test selftests: mlxsw: Add a resource scale test for Spectrum-2 selftests: mlxsw: Add Spectrum-2 target scale for tc flower scale test .../net/ethernet/mellanox/mlxsw/spectrum.c | 51 ++++++++++++++++++- .../net/ethernet/mellanox/mlxsw/spectrum.h | 3 ++ .../ethernet/mellanox/mlxsw/spectrum_span.c | 21 ++++++++ .../net/mlxsw/spectrum-2/mirror_gre_scale.sh | 16 ++++++ .../net/mlxsw/spectrum-2/resource_scale.sh | 46 +++++++++++++++++ .../net/mlxsw/spectrum-2/tc_flower_scale.sh | 20 ++++++++ .../net/mlxsw/spectrum/mirror_gre_scale.sh | 7 ++- 7 files changed, 160 insertions(+), 4 deletions(-) create mode 100644 tools/testing/selftests/drivers/net/mlxsw/spectrum-2/mirror_gre_scale.sh create mode 100755 tools/testing/selftests/drivers/net/mlxsw/spectrum-2/resource_scale.sh create mode 100644 tools/testing/selftests/drivers/net/mlxsw/spectrum-2/tc_flower_scale.sh -- 2.21.0