Message ID | 20180722131712.30578-6-idosch@mellanox.com (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Jiří Pírko |
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-2.web.codeaurora.org (Postfix) with ESMTP id 0173E1823 for <patchwork-linux-mlxsw@patchwork.kernel.org>; Sun, 22 Jul 2018 13:18:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E2F40281F9 for <patchwork-linux-mlxsw@patchwork.kernel.org>; Sun, 22 Jul 2018 13:18:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D5F5E28385; Sun, 22 Jul 2018 13:18:39 +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 2D2D9281F9 for <patchwork-linux-mlxsw@patchwork.kernel.org>; Sun, 22 Jul 2018 13:18:39 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 41YQDY2ntNzDqnc for <patchwork-linux-mlxsw@patchwork.kernel.org>; Sun, 22 Jul 2018 23:18:37 +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="i3N0ZF5c"; 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=40.107.8.57; helo=eur04-vi1-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="i3N0ZF5c"; dkim-atps=neutral Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80057.outbound.protection.outlook.com [40.107.8.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41YQD542N5zDqmf for <linux-mlxsw@lists.ozlabs.org>; Sun, 22 Jul 2018 23:18:13 +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=9FlZH9V35VVWYSdew7X57DmJFVcpO4wcI7O6tBgjktY=; b=i3N0ZF5c5kg2gHQpZdnwS6FBmTIw9dYn9w9qvWNvUTLm+2anfxW5X9/KBsF8CnT2aMCsjmDoDBh/K9ZJc3cd8KIrVqQNlHGDcLveroEtbFxsHJCURwSNFMnt7Sdsh0Szi7akojbS5Vg0Qs4iiw0syxAZPAh2VUbZn7mmy6D2mOc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=idosch@mellanox.com; Received: from splinter.mtl.com (193.47.165.251) by HE1PR0501MB2331.eurprd05.prod.outlook.com (2603:10a6:3:27::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.973.20; Sun, 22 Jul 2018 13:17:59 +0000 From: Ido Schimmel <idosch@mellanox.com> To: linux-internal@mellanox.com Subject: [PATCH net-next mlxsw 05/18] mlxsw: resources: Add Spectrum-2 eRP resources Date: Sun, 22 Jul 2018 16:16:59 +0300 Message-Id: <20180722131712.30578-6-idosch@mellanox.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180722131712.30578-1-idosch@mellanox.com> References: <20180722131712.30578-1-idosch@mellanox.com> MIME-Version: 1.0 X-Originating-IP: [193.47.165.251] X-ClientProxiedBy: AM0PR01CA0036.eurprd01.prod.exchangelabs.com (2603:10a6:208:69::49) To HE1PR0501MB2331.eurprd05.prod.outlook.com (2603:10a6:3:27::24) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5d4ab917-3924-48ad-8274-08d5efd58c39 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600073)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:HE1PR0501MB2331; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0501MB2331; 3:dhVvcZzSkckGopxK/lICIb8E9QCSBnY2s0d4xWMMpp3HLiFscS3CN00p7+uJSFTBgrMRMHYQEP0VeO9Sf9qW4Elltov5Qd9a6LxKDxohlWNA6zyzfmLCqo9MrF/dgilh2CeuAp8Q7lwuWfc27jaTWzd/mXkOYUhJIuBe24OhtBK3U/+Q+b0oQL5+dvMoX7hZ8w4+efoOlGvJ8VB6rGK3tz08Ngzr/G+c/BCKZD6RF9+OjkRsoLxQdlo/rSp5/Eka; 25:BouLuSGgKYQckPnd7hvaiVeJ9vc9UqG51pr4oMQOM9u1PWn4Tjd0pUvzlsMYikxqM3eBWElhI+6coF2EZjhHk5mr4YL7kpqPX74vPTb31S8tRiCO/HWMwLhVt28OWaqFn8Gc3jksniFOV6ujdVXme1N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mKVC2J5FLV0+X2gH85HfjFn5Wah30s04VipfPctOpATP0SHMQlhX9G9M1ltm71eaMzYOJwUp3jA+awVGHm32qGbT/AQYGcphARaxAkDCfk1vRbAfW+kmsJQ+Li3WFzHwCwonDAHWmluzKCDi3XVJzzHLJmrAOrc8uS1hg0AFYZR1D3SPCEbIw6Em1fVNemhIFYkEDRqV6/adrON1p59QLLOsZdg== X-Microsoft-Antispam-PRVS: <HE1PR0501MB233157C359161A1831B79194BF570@HE1PR0501MB2331.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)(3002001)(93006095)(93001095)(10201501046)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:HE1PR0501MB2331; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0501MB2331; X-Forefront-PRVS: 0741C77572 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(366004)(136003)(346002)(396003)(39860400002)(199004)(189003)(47776003)(956004)(81156014)(106356001)(66066001)(3846002)(6116002)(2361001)(486006)(97736004)(68736007)(81166006)(1076002)(36756003)(4326008)(2906002)(86362001)(16526019)(11346002)(26005)(105586002)(6636002)(386003)(6506007)(478600001)(446003)(8676002)(8936002)(5660300001)(53936002)(48376002)(34206002)(107886003)(50226002)(76176011)(316002)(53416004)(305945005)(476003)(6512007)(25786009)(2616005)(2351001)(37006003)(7736002)(51416003)(16586007)(50466002)(52116002)(6486002); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0501MB2331; H:splinter.mtl.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender h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vx7ydkoSRTugq1fCFgFWcTSCoc/hOp2l1/DRVhNYZ8f4GFYurW5vQuVGLCNHW8/fa/Bew==; 5:zEaWmajv7px4725r0dI6MmjxY7PCxPxVDFm8VoZCsQu7lpEwgeWOVXU0TxbnZdgiU8jKO1i72MHXKqPqyXYZpMPyMcYVdzOhMSrhWsdEGiRcLUmZ4EAOLL3SBP/HH4WntbEfLXqXKHxwpxq3UNvyPs9APhXvf04Nr1aychlnh9M=; 7:cMx5ieHo6kMNjODT6onFx0RbWI5CCSz1iu7/btdd2Ri/82VPsdWqi8G6Ez+Nf+NsQLqtREwanlAsASQwlwt4of3yjdV2nvLjZ9yyGesbhyMV0KvljWNt5RdW+z3LxqnMgxW8M0gcFXFYbsOX3gKqdM1JhB4dhwUDVKy7tjMXfbNNtiYxsV/lUh8TrD4VuXe2xdD+98X20GOzzCrFE8RjJ4KCpIAkWfo5Bmz283hOwYD5phn4gOJ+pPuO8YxYZq2/ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jul 2018 13:17:59.6663 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5d4ab917-3924-48ad-8274-08d5efd58c39 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0501MB2331 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 |
Series |
mlxsw: Introduce algorithmic TCAM support
|
expand
|
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,