Message ID | 0951b6867b33720ffacd94d6e4bc24f47e586d47.1530319109.git.petrm@mellanox.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <linux-kselftest-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8829160327 for <patchwork-linux-kselftest@patchwork.kernel.org>; Sat, 30 Jun 2018 00:52:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 69860295BE for <patchwork-linux-kselftest@patchwork.kernel.org>; Sat, 30 Jun 2018 00:52:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5CEE9295C0; Sat, 30 Jun 2018 00:52:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DA626295BE for <patchwork-linux-kselftest@patchwork.kernel.org>; Sat, 30 Jun 2018 00:52:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932705AbeF3Awh (ORCPT <rfc822;patchwork-linux-kselftest@patchwork.kernel.org>); Fri, 29 Jun 2018 20:52:37 -0400 Received: from mail-db5eur01on0040.outbound.protection.outlook.com ([104.47.2.40]:26848 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753629AbeF3Awg (ORCPT <rfc822; linux-kselftest@vger.kernel.org>); Fri, 29 Jun 2018 20:52:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=f8qrGvtqOft7Thbep5/T/WApRtb1XA0YVqcypJaNym0=; b=Ezxed3AraBh9QwGo9EYbVnQi1uBuj/hvqQkC6RAm9Uj0CPFzzxSEA/50NYni/+t+4OPJIS+tCLqsOj52Shejmco6IZEQuohEX2nT7jzv2deXnRj7GOqq0G8RlaSIjA5xOwhKBTsp8msZYuECojlXAMZUsVnlDJDTIUNeCvXD+y8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=petrm@mellanox.com; Received: from t540p (89.176.83.59) by VI1PR05MB4191.eurprd05.prod.outlook.com (2603:10a6:803:4e::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.906.25; Sat, 30 Jun 2018 00:52:33 +0000 From: Petr Machata <petrm@mellanox.com> To: netdev@vger.kernel.org, linux-kselftest@vger.kernel.org Cc: jiri@mellanox.com, idosch@mellanox.com, shuah@kernel.org, davem@davemloft.net Subject: [PATCH net-next 10/13] selftests: mlxsw: Add target for tc flower test on spectrum In-Reply-To: <cover.1530319109.git.petrm@mellanox.com> References: <cover.1530319109.git.petrm@mellanox.com> Message-Id: <0951b6867b33720ffacd94d6e4bc24f47e586d47.1530319109.git.petrm@mellanox.com> Date: Sat, 30 Jun 2018 02:51:55 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [89.176.83.59] X-ClientProxiedBy: LO2P265CA0161.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:9::29) To VI1PR05MB4191.eurprd05.prod.outlook.com (2603:10a6:803:4e::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 161cc18b-abc3-4436-51bb-08d5de23c42c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(48565401081)(5600052)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:VI1PR05MB4191; X-Microsoft-Exchange-Diagnostics: 1; VI1PR05MB4191; 3:MYBLNxahRhG5HyC1lMwd/pYAduX3piMzrKfup7ClZgw4waJp3SEprzJ6ULhd+Qk05t4gQB/uwScG1AQC7/L8ZVyCt0BGJE3knJUhOrDH0lSrB2lop4DLg5bOA3qVubzAjI3yRfRoDftaDJTZOaa/vJ3dGAx4lcNzKbdTvVlQxvrsHLHiCrBEgpjrGwgTRrKug/zmhCr1QieYQEMXjUG2bGkPCsFjDzsB7GJhcIAG+bhwErZON7LWJaa44QnM3Uxw; 25:ZdFo3kSzNv5hLXMIe92a25HOI4p9gnHb46b6JXJ2gN4qRSJ0CrFOP8cViS7YbL8pRgy9ZBL5THTPR+K3Cy3V5doiQqXNB+c1H31fStLPPe/zfv9EAPx83lBQkHYbd5iqCwP7oEyoY3jF2WE9D7VpVeHIZjDGt+ff19xJ6D9R1RKlKkel3aQQHiGn/JtIAan5/+eqYng4+nBsttiHvQAwZ4C0q10vw+AOHleOGwF/Arr/9hnWBWF+CRayzLpx+abqLF9meZcKIjQskBUsnNYgLADR0x9Hist2zeQ2oWMCvnAbd1VaAGrnkBFYbjTUD/ZqmQyL6QIKH1zQb9Av8YWAkg==; 31:pST2EehLxIMMTwWQT1UsV9uUXAGFOtQNcf+foE+tQTcGV2uQ2YBIDx0XrInW2pcsH0IArnyr1mUSb5UecbZkHM+c4aYENFMM4MQHWDcd7l5N68UYQkGau8c41OWH450KZHHvPXTY/Dkp16jgepAfUqjCJar9xwt5F68AK1n/4tbsOpRJYkMt5xaX3GhMM/KYiFK95H30Otx4T46RJdE5olfgw8XfTDLmgfeNxAoU+Qk= X-MS-TrafficTypeDiagnostic: VI1PR05MB4191: X-Microsoft-Exchange-Diagnostics: 1; VI1PR05MB4191; 20:6YhKlWOv1r8uJXWRl0MkQnwOIqC/B8prjIQrMA6G+aPFxqWKM0u/kyQaR/xXEb2OoFcee24MjSP7MhyXS71PtZXuUT0A97HcEkQAwfx6QrMTYSTQnlYbww+ZgpM3L3S+ngpXCb98Y+til277Mp2vXbqHjW2KFxw5yNsvGQnJYadBfC5QtM+5AKBiJKktZAjClut5lrfcB9u9PTg6AedktgYBVBacRe8I+B7ep/m/NjUVEEyBwJjgwCOpw+12Za2w8ynqyFsL/odhmlIr3BTfOdfeCZWqLdxeoChfwmSjvddz4ivGvHjOiiByPauNj6zpVoeatiAjW48Miu0Lebz0fn9mxucxmY1+FABrkviZCn0bulnOj7sRhh3hKtI7++T+RuAp4AO1eXEFYCZaL4gEQFjgWE+9PF5L+RR9UNNjc7HnVk+gXCVrqtdErgNX1nqfQWp8i9mOLSEZXCn1Quar48XLgZQWgKm1WFrM5NS8Kv3xt20zq9SaJ2/zj8NrmE5J; 4:JdmgfNIJWC5DoysCw9I3ZNKpR7hTmZtoewCdO3oGVqro7VcKm2AsIhfQkS6xDvuCOwB4VyJxn0huTV+DOohu9MMi4bEWLbnkJSXTQ37lHAweZMupKt9ct/LzPYpd8W2l/hpX2T6g6n7OKWX7Yg+EaoPYdsmSCIr7uNxHm2HZSL3rYlugFJYFMMSrYCZwnS6PVA8dbQIRJR2YeQDQ4s2EYyWSFJFudJY7dlLVhikTCv2V9OwsxlHMsc5G+6m2pTaS4sBA1m1beD5GDndce+Wa4Q== X-Microsoft-Antispam-PRVS: <VI1PR05MB4191EF1CEACC0D7E874BC619DB4D0@VI1PR05MB4191.eurprd05.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123562045)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:VI1PR05MB4191; BCL:0; PCL:0; RULEID:; SRVR:VI1PR05MB4191; X-Forefront-PRVS: 0719EC6A9A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(346002)(366004)(39860400002)(396003)(136003)(189003)(199004)(86362001)(478600001)(476003)(486006)(68736007)(956004)(2616005)(6116002)(6496006)(2906002)(66066001)(52116002)(3846002)(47776003)(76176011)(53936002)(5660300001)(4326008)(446003)(11346002)(51416003)(6486002)(36756003)(48376002)(118296001)(386003)(50466002)(16526019)(105586002)(186003)(26005)(106356001)(97736004)(25786009)(8936002)(316002)(6666003)(81166006)(7736002)(16586007)(8676002)(305945005)(58126008)(81156014); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR05MB4191; H:t540p; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR05MB4191; 23:YWRLKrpqQ4A9Jx8Ijr8oSY0tFAIkb04CG1+yuXKn5?= =?us-ascii?Q?EpXchPjOYSaQ7eUuLrGGdf1dVs5hPxn7Jso+l6dIkooupZ8yZ9dcVLnodAeB?= =?us-ascii?Q?gJpf4eH30HERsLAdUbGIQ6Tr1fHzwNfnaBtoYZZL2frOooROcCXod9iSQDOO?= =?us-ascii?Q?5jqasXMWSelr0FzqvuXCgLipkzlTeJSjT/Hj1El/n1wEUyKV8ccCpZ6Z+UgP?= =?us-ascii?Q?/PjKY5Rb5eR9zotxNN1ZkaGhKge9Ca9//sLr1qy6vgFxgP7YENi0xa3LaM5N?= =?us-ascii?Q?xp60X3mjpAxeBZt2wSlFQbYD/x/ArhRRRUaDvh8VV/ge8f1TMUGSA4EW2g9F?= =?us-ascii?Q?98IrXsgVngic+xw+0IILn+cOrek9lLs0B8pIe/Iu7rKz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nosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR05MB4191; 7:8aVkT3IR/Sh/x/nh3UKg8v8V1ZkrxG9+CoGLnMVuXsEXvk0kLAqR1pImnJvRYywIIItvCG4Uzi1+f/wJtZJqmwnz1YjIFX+UqI6OevflramKrbuIP0lMcybkIH42h8h07XgGlxPiv1Zs4ZPSBWQRTPZzC6CWCjhWCxL97enUVPfWNw5gb3lLzy9ZFutCB3nke+/5+STsh5z0cAejiKsu1SOI8PF7KKtaKpL6JLzD7ODyJgaxduSuNCdx3YuFVpjY X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jun 2018 00:52:33.3809 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 161cc18b-abc3-4436-51bb-08d5de23c42c X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB4191 Sender: linux-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kselftest.vger.kernel.org> X-Mailing-List: linux-kselftest@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/tools/testing/selftests/drivers/net/mlxsw/spectrum/tc_flower_scale.sh b/tools/testing/selftests/drivers/net/mlxsw/spectrum/tc_flower_scale.sh new file mode 100644 index 000000000000..f9bfd8937765 --- /dev/null +++ b/tools/testing/selftests/drivers/net/mlxsw/spectrum/tc_flower_scale.sh @@ -0,0 +1,19 @@ +# SPDX-License-Identifier: GPL-2.0 +source ../tc_flower_scale.sh + +tc_flower_get_target() +{ + local should_fail=$1; shift + + # 6144 (6x1024) is the theoretical maximum. + # One bank of 512 rules is taken by the 18-byte MC router rule. + # One rule is the ACL catch-all. + # 6144 - 512 - 1 = 5631 + local target=5631 + + if ((! should_fail)); then + echo $target + else + echo $((target + 1)) + fi +}