Message ID | 20180717153657.16324-6-idosch@mellanox.com (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Ido Schimmel |
Headers | show
Return-Path: <linux-mlxsw-bounces+patchwork-linux-mlxsw=patchwork.kernel.org@lists.ozlabs.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 1B8B460545 for <patchwork-linux-mlxsw@patchwork.kernel.org>; Tue, 17 Jul 2018 15:41:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1C30F29676 for <patchwork-linux-mlxsw@patchwork.kernel.org>; Tue, 17 Jul 2018 15:40:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 19589296D3; Tue, 17 Jul 2018 15:40:57 +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=-2.8 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, MAILING_LIST_MULTI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4CE31296A2 for <patchwork-linux-mlxsw@patchwork.kernel.org>; Tue, 17 Jul 2018 15:40:56 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 41VPd24Y9NzF3JK for <patchwork-linux-mlxsw@patchwork.kernel.org>; Wed, 18 Jul 2018 01:40:54 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=mellanox.com Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=Mellanox.com header.i=@Mellanox.com header.b="L6tl2hpb"; dkim-atps=neutral X-Original-To: linux-mlxsw@lists.ozlabs.org Delivered-To: linux-mlxsw@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=mellanox.com (client-ip=2a01:111:f400:fe07::603; helo=eur02-am5-obe.outbound.protection.outlook.com; envelope-from=idosch@mellanox.com; receiver=<UNKNOWN>) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=mellanox.com Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=Mellanox.com header.i=@Mellanox.com header.b="L6tl2hpb"; dkim-atps=neutral Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-am5eur02on0603.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe07::603]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41VPYM49SQzF3Hg for <linux-mlxsw@lists.ozlabs.org>; Wed, 18 Jul 2018 01:37:43 +1000 (AEST) 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=0f9xqccr0aDfyE9meoZZd0ShbHWOjwXQ08tIuV61JeQ=; b=L6tl2hpb31ZhXl42bihtbkRflogoTa6/44WKSyLigyC1QOfD8mugoMrt1mecK1GG27IA7eh+b/rK7plabmBN3dgcAPU4oDaGVca6lMA45c3houN1ArqW7ejdShfHU19yW80bjEFMSmvvPw8l1u1nVmJL16s0vmPDpCLLD+/uN8Y= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=idosch@mellanox.com; Received: from splinter.mtl.com (193.47.165.251) by HE1PR0501MB2330.eurprd05.prod.outlook.com (2603:10a6:3:27::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.952.21; Tue, 17 Jul 2018 15:37:30 +0000 From: Ido Schimmel <idosch@mellanox.com> To: linux-internal@mellanox.com Subject: [PATCH RESEND net-next mlxsw 05/18] mlxsw: resources: Add Spectrum-2 eRP resources Date: Tue, 17 Jul 2018 18:36:44 +0300 Message-Id: <20180717153657.16324-6-idosch@mellanox.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180717153657.16324-1-idosch@mellanox.com> References: <20180717153657.16324-1-idosch@mellanox.com> MIME-Version: 1.0 X-Originating-IP: [193.47.165.251] X-ClientProxiedBy: AM0PR02CA0020.eurprd02.prod.outlook.com (2603:10a6:208:3e::33) To HE1PR0501MB2330.eurprd05.prod.outlook.com (2603:10a6:3:27::23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2618ce90-b092-4026-c087-08d5ebfb35c2 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(48565401081)(2017052603328)(7153060)(7193020); SRVR:HE1PR0501MB2330; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0501MB2330; 3:SJCLrGz8p3pI4+6gQiu4PFzs3/Vc3vX4i3VZ6PxnmXy6+Rpnr/HUfWHVQU384K/5A4hboDWKmx4NOVrrzgQV857oN3MeOHADKP77uPEyhF8AFLzvWIalkXl3apyOpnlqBpaQaSazLTPVE637EdDcHzZzD8hsPuWptfzwK3lf2SJN0NVSMCovWQBSJBEYbA2gcyALlj3ynb+pjtW0yVUpZ8vkLkeINyWZZorUBuk7q1pdc/XvSLl+KkXumCK6aJMq; 25:Y3f/tXw3mPAFQryeLQRD5gJf8jPf8iaHA4q6N4ik5oVe9YRVrCoIuolY4KYRIXkxnLdwcphYSujHg9JWlljbUBoWyG+o5CoMKSn9WCHbKTj7c/AjNnNORwYfdFBM0/QX49E0PMWsxU8v+QwbW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Ba2m1CWvjVnSD49CWd1Knr94wPhDFKSqufzQwYQ8BSw6hHEJFAoCfPwY9Hh9Elakz+9btIIKKcqj+nm+BRd7t+bX5E3O24ZQN+mTF1+zOWMP7V7DyNi9DiBBqQU7oxK53nqLdVTku2SUNg8OqL2XjVDv9xDHu0uziqQDG6oZryOfl0+RD5hZ0hO/mAbn/SU3HZBuKSLH1Wd/PJ/awtGUtOnzBw== X-Microsoft-Antispam-PRVS: <HE1PR0501MB2330C310F7EF7901E6CAEA8ABF5C0@HE1PR0501MB2330.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)(8121501046)(5005006)(3231311)(944501410)(52105095)(93006095)(93001095)(10201501046)(3002001)(6055026)(149027)(150027)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:HE1PR0501MB2330; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0501MB2330; X-Forefront-PRVS: 073631BD3D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(39860400002)(346002)(136003)(376002)(366004)(189003)(199004)(51416003)(2906002)(8676002)(476003)(8936002)(6506007)(956004)(81156014)(2616005)(6486002)(2351001)(26005)(386003)(81166006)(16526019)(107886003)(53416004)(486006)(105586002)(446003)(4326008)(11346002)(34206002)(106356001)(66066001)(53936002)(47776003)(76176011)(68736007)(478600001)(6512007)(316002)(50226002)(50466002)(52116002)(7736002)(2361001)(3846002)(16586007)(305945005)(37006003)(97736004)(86362001)(6116002)(36756003)(217873002)(1076002)(48376002)(6636002)(5660300001)(6666003)(25786009); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0501MB2330; H:splinter.mtl.com; 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; HE1PR0501MB2330; 23:9Wv3U5bxpVH9rK71pW6tBxD+4QFO+w+RopoZILS?= =?us-ascii?Q?sNkT3LaYtxQII/z3e3RrPSRKEzq6xUFBQrS/IQD5lwL5LaJLlq5hJ6zbc8YT?= =?us-ascii?Q?SoH8RTkT9o2gVNJw8gkmI7tToSkOCZKEWl+oECY26pCXNh665Gsr+msLLYFk?= =?us-ascii?Q?PdqmcGda+QtEiR5Ttu1mCg97tBimKLnRTH+fy2L3Rn8+wUOvSaOrW50FPpnx?= =?us-ascii?Q?wEz1BApFVyByy7GlCXWkKjEP/ZKaNXfunP2mWbCSImtrpuChTtjU5ZRx2OgF?= =?us-ascii?Q?PUiKxSM+QzAMlBnQ31oeNgMOxoS/X+oLJXGJADEBnAPYmv928nl6B8R1U/sQ?= =?us-ascii?Q?pM7V1ApZkTa0LQzEI5Wc53Gp1SBDWiGSSBdxbRODJxVEi4asmbC/6G2v/kUe?= =?us-ascii?Q?12B9jDEPxJuBbXvCX/NGWb8GKfzeGjY0jjT8x7Cjlj252NSPk248K1uEx+Pr?= =?us-ascii?Q?Xl6KdBVIKTBtC00kVx3byQGOvOYVrzUjax2IMBzpS/n50duJ6/tFD0vXgnsr?= =?us-ascii?Q?O7GcgFz2w7NRC69X3aFJYJh7Wu+G+MFOROr1YsSlkHzgFN8BWKfO/hWDmA7t?= =?us-ascii?Q?FKoaU/7kvGx/JZdxPnJc6dWbN6RtCjbMO+gJJolXw+uFzeOaGZ7OBWMfKdzQ?= =?us-ascii?Q?ds8i4nWbpyPgzy+UaRaywUfX/3/sm5byTDyd1f41qVT/aSbSp9VpdL8vWzha?= =?us-ascii?Q?BuPy4od6t/r5nbypJkkaYPe/o4ukJlNLKaJO4QkLEmiTy6GFpQzOn/ktsASh?= =?us-ascii?Q?9ekTwiWzvT1R75CqFjIEDNk5+SpdmvjGtWCkp1QSZTbSD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UMDifBY1GM/GE/souXCGl+ X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jul 2018 15:37:30.8286 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2618ce90-b092-4026-c087-08d5ebfb35c2 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0501MB2330 X-BeenThere: linux-mlxsw@lists.ozlabs.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: mlxsw driver development <linux-mlxsw.lists.ozlabs.org> List-Unsubscribe: <https://lists.ozlabs.org/options/linux-mlxsw>, <mailto:linux-mlxsw-request@lists.ozlabs.org?subject=unsubscribe> List-Archive: <http://lists.ozlabs.org/pipermail/linux-mlxsw/> List-Post: <mailto:linux-mlxsw@lists.ozlabs.org> List-Help: <mailto:linux-mlxsw-request@lists.ozlabs.org?subject=help> List-Subscribe: <https://lists.ozlabs.org/listinfo/linux-mlxsw>, <mailto:linux-mlxsw-request@lists.ozlabs.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-mlxsw-bounces+patchwork-linux-mlxsw=patchwork.kernel.org@lists.ozlabs.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/net/ethernet/mellanox/mlxsw/resources.h b/drivers/net/ethernet/mellanox/mlxsw/resources.h index 4f84c7c8117b..bf650f2cd5af 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/resources.h +++ b/drivers/net/ethernet/mellanox/mlxsw/resources.h @@ -65,7 +65,13 @@ enum mlxsw_res_id { MLXSW_RES_ID_ACL_FLEX_KEYS, MLXSW_RES_ID_ACL_MAX_ACTION_PER_RULE, MLXSW_RES_ID_ACL_ACTIONS_PER_SET, + MLXSW_RES_ID_ACL_MAX_ERPT_BANKS, + MLXSW_RES_ID_ACL_MAX_ERPT_BANK_SIZE, MLXSW_RES_ID_ACL_MAX_LARGE_KEY_ID, + MLXSW_RES_ID_ACL_ERPT_ENTRIES_2KB, + MLXSW_RES_ID_ACL_ERPT_ENTRIES_4KB, + MLXSW_RES_ID_ACL_ERPT_ENTRIES_8KB, + MLXSW_RES_ID_ACL_ERPT_ENTRIES_12KB, MLXSW_RES_ID_MAX_CPU_POLICERS, MLXSW_RES_ID_MAX_VRS, MLXSW_RES_ID_MAX_RIFS, @@ -109,7 +115,13 @@ static u16 mlxsw_res_ids[] = { [MLXSW_RES_ID_ACL_FLEX_KEYS] = 0x2910, [MLXSW_RES_ID_ACL_MAX_ACTION_PER_RULE] = 0x2911, [MLXSW_RES_ID_ACL_ACTIONS_PER_SET] = 0x2912, + [MLXSW_RES_ID_ACL_MAX_ERPT_BANKS] = 0x2940, + [MLXSW_RES_ID_ACL_MAX_ERPT_BANK_SIZE] = 0x2941, [MLXSW_RES_ID_ACL_MAX_LARGE_KEY_ID] = 0x2942, + [MLXSW_RES_ID_ACL_ERPT_ENTRIES_2KB] = 0x2950, + [MLXSW_RES_ID_ACL_ERPT_ENTRIES_4KB] = 0x2951, + [MLXSW_RES_ID_ACL_ERPT_ENTRIES_8KB] = 0x2952, + [MLXSW_RES_ID_ACL_ERPT_ENTRIES_12KB] = 0x2953, [MLXSW_RES_ID_MAX_CPU_POLICERS] = 0x2A13, [MLXSW_RES_ID_MAX_VRS] = 0x2C01, [MLXSW_RES_ID_MAX_RIFS] = 0x2C02,
Add the following resources to be used by A-TCAM code: * Maximum number of eRP banks * Maximum size of eRP bank * Number of eRP entries required for a 2/4/8/12 key blocks mask Signed-off-by: Ido Schimmel <idosch@mellanox.com> --- drivers/net/ethernet/mellanox/mlxsw/resources.h | 12 ++++++++++++ 1 file changed, 12 insertions(+)