From patchwork Tue Jul 17 15:36:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ido Schimmel X-Patchwork-Id: 10529849 X-Patchwork-Delegate: idosch@idosch.org Return-Path: 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 AE79B603ED for ; Tue, 17 Jul 2018 15:40:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC2C0296C0 for ; Tue, 17 Jul 2018 15:40:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A98F1296B8; Tue, 17 Jul 2018 15:40:56 +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 F2B7F295D9 for ; Tue, 17 Jul 2018 15:40:55 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 41VPd21GwSzF3JH for ; 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="pCbViN1k"; 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.0.59; helo=eur02-am5-obe.outbound.protection.outlook.com; envelope-from=idosch@mellanox.com; receiver=) 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="pCbViN1k"; dkim-atps=neutral Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00059.outbound.protection.outlook.com [40.107.0.59]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41VPYM49DMzF3Hb for ; 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=grNxDlJKO5pi7GShNIN9QNGYKLcbtb6VdfjiDcDV3cY=; b=pCbViN1kyjSuGKbGQh4egGcDCWhwU6l8zxdD1n/BlbuhjdXdFolnwJBbdtpSF3xYT45Z/oxmS8T6h/fGnsLnp7lhkpluqRa/a0bZbkl0etslG6GnbcZbrNFzz+7SgWSzfR91U4enMgvpRccQx/j72DQKe3x1tcURZz3qY94+1eA= 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:29 +0000 From: Ido Schimmel To: linux-internal@mellanox.com Subject: [PATCH RESEND net-next mlxsw 04/18] mlxsw: resources: Add Spectrum-2 maximum large key ID resource Date: Tue, 17 Jul 2018 18:36:43 +0300 Message-Id: <20180717153657.16324-5-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: 26f63585-90c4-4aea-ee85-08d5ebfb352e 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:EIAxafvGIXha0fBZSRHCVCkK2HZ6AG1XXeW+xts2vrfSh4gMYoFjO/k8KguBFwnVKZPbq0X2w7fqulhUy1qCh6rBRjGeHh9MtHH3PlUy78nKtNbLbPEoxpXZ7p0SX+kilOyYXp5IuJG0q1rUqdJhuqIQSBcr8AoFWMQU/DKxuxyBNL5TzEEPiFY2zJ5TVgdZpQIEDbTW5eXVhepx9ImjiIzitMnqy/wgJmTLRiO7yeyifQEaLLXLotX5o+gpX3xR; 25:dyy1PIkmNSecXS9dShUyfBiEKZXyGogDWo2yrV3A0BhCXWx7brWNMTQ6BmQ/NsMEcXLxhnwG34w9LGPWxQVoPGXJv30YCLRd1k6CT96GeoKrv1SqbJyhktry1JzVpTJMmpySve7LIBJNeDvTwad6uhtzE4QeWpG/2G3XxPTn0pL3cUQHGlsJpVGgBk+S8YV+XGl2Wjy9JGtF+jt8m3E5uF0sv1pvfqcYmMS1y6MqofS6aNY2voP6gPMVvAD4ynGxWMJkGK4Dyj1tGkCWWKrX88+pLsOrrSSqVeEc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wuM95J9t6tUONXau6sHTFhiazsBWSc/85xbBIT2YLIp/41+SUts55QoAXPQeVCbzk2p9jbMuw50a5B3tG/4Q== X-Microsoft-Antispam-PRVS: 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)(14444005)(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:CxGMU38mgBunrCXi7jTGB9VybFDRnZ/8t588TFb?= =?us-ascii?Q?S+8i6lMRah6nmlRcW9WTZxK8TONoUiP9q5DeFjMCjnwDXzR8VHVEwpRtOAK+?= =?us-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BC76GOWpA97w9qtpyuroUL5bvS3pHU?= =?us-ascii?Q?r60GFK1x9J+HU0reOyMnimmz02O6nH7Cvh0sZzue71vUiHv/NJQbV0ZE1wTK?= =?us-ascii?Q?TAfZjB07O2yNpKt9LmDh42T9xwgGJKwAeI9Rwbwyzg1nxTbhFrSignNB1FGV?= =?us-ascii?Q?8kr1IGF56Z9d2965eGcHDwTaztokVMATrhRE4A7JFxqIOPHtgr/UKgImEqYg?= =?us-ascii?Q?xAWlWE6CVL0sB0lz/kMGHM4KaSayuza1Oz+HZYtVWQyMhgGU7fm183YPf5p4?= =?us-ascii?Q?Fz44096YYnWKOjvk2YTm0epOIu/KQ3HlzRH26pVO39jcz2NdzkI2vdKt0cRs?= =?us-ascii?Q?r0L0T/rJgP6BscdTN1fE8dYpsFQPaqPDxk9xClcqbaSMz?= X-Microsoft-Antispam-Message-Info: cXnwOpM0KqF7Qxa5qLXVbeE2F/vqgqqZcmkvvhttUGATI85ozbSbInrd7MtXqf9CndYnRv5INZSMLPmJEv/KcGJDNGNB9qJ494HYh+K2TDCMqRxh1nrfiCeoHkV/INVTuQQXz8o1QrmjgS+yxlUHEkovJzVz3XdpjHyISrq/iiPwhkhTSonDrPsRywo77PqpYkHkMeZip/tNwKPknkenvQbTZQUIy/fY2gOyht0wxmtJalKrKGlsTnwbP7zQUKQuO9HL+2s6Qnguw7kYw2EgjieWz4CFbgl87y454EUNEmrIe4a8q/2enPXrSCcQIu78VNW5MytmCp3egPCcqdk8LG16QKdOYBX71CGVPLc8g/w= X-Microsoft-Exchange-Diagnostics: 1; HE1PR0501MB2330; 6:icaqxaCSPaqfkxMOqNkSht9MY19fLdfLLeKRqbeXnPgtawRvIOWXu5JfTvZhMsR24gC1XOyXycW+JnL7pspd2IuQ685GymuRuIXrXQgJfsiEHSykqTMBgG1PbQ/7Ec1G41+ifYYf7sYjSD/mJNMWJiDsLmgxUlqMBYqZqvjrrMmudc4GKj9rjjmdqg3mcZcud6nYFKrOP0ZneV98Dr/YGAQD4L4kDOc0wsAMgLTwZ2E9v6y6yG5xSLv3XIOrTYzXkqSSqE5c9BlCuLuxZl9xHfgw2wZrMaYSWaXJQ8dHwjZQOhw3gz0kpOO0vjM5NZU4/Ab8UC/A6IEWpBqBbZZ5PWT1ucJKvAdzR2u0Xfh9afnF39TLcuXFp+tNwGpUvOvkCka9bV8d02pRDyDnokiRN1f/U9GSGYfr/VHSQ+siMWp389p+Ubzsq6HwiPCovf1SjGQrg8bsdoWrMi2K9bGLfA==; 5:TaktqvJWctWU0WwqWy2bsk5esqP9i+gtZXsBl+rnvEiEEpZDARSGf4iOjn0BGpv6Gc61qugoihh1Uy+wU4qC1I3Ytk0/gqMDQ9S/LtVK7YC/3toht6C96Dxa1regNoEp6lfMO4YJc2G5lTJhwm5L1g+n03ajgKBsXZfF5Z2IrTQ=; 24:9rxl7phpC0dTnDVz2Y5GTqreeYBY0hk7wcwjByboaWoH37+ksM3+ZyOIPsQpgYej7xEEmbvEMkzJMMI2IXrc4dADnD5Jij/sjuNyhyFRSYM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0501MB2330; 7:twokJoENRFWcLXE/crLaQGCypk2uJiKmOolHuwPLvsdy9c+WpOnCo0NlNA46Mv+D1Iwh+6WBdkQeh6NmtkXumDvwdMVSfXv1M6DWEDWnySHzxUVY4CjsBRewUw/MTkto0Xw3ejii80SI+GM95B1vuljjsQJdgoSgeGa8ZD8OyYYXWwFm+Qn0Hel7rlWzvGHYj4FTjlnzlMLdh3yQyUrsIAGuj8E2mCz5wK4xUTP9soEElrIFJE86N0UlXScCqNmP X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jul 2018 15:37:29.8598 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 26f63585-90c4-4aea-ee85-08d5ebfb352e 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linux-mlxsw-bounces+patchwork-linux-mlxsw=patchwork.kernel.org@lists.ozlabs.org X-Virus-Scanned: ClamAV using ClamSMTP Add a resource to make sure we do not exceed the maximum number of supported large key IDs in a region. Signed-off-by: Jiri Pirko Signed-off-by: Ido Schimmel --- drivers/net/ethernet/mellanox/mlxsw/resources.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ethernet/mellanox/mlxsw/resources.h b/drivers/net/ethernet/mellanox/mlxsw/resources.h index f672a7b71de7..4f84c7c8117b 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/resources.h +++ b/drivers/net/ethernet/mellanox/mlxsw/resources.h @@ -65,6 +65,7 @@ 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_LARGE_KEY_ID, MLXSW_RES_ID_MAX_CPU_POLICERS, MLXSW_RES_ID_MAX_VRS, MLXSW_RES_ID_MAX_RIFS, @@ -108,6 +109,7 @@ 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_LARGE_KEY_ID] = 0x2942, [MLXSW_RES_ID_MAX_CPU_POLICERS] = 0x2A13, [MLXSW_RES_ID_MAX_VRS] = 0x2C01, [MLXSW_RES_ID_MAX_RIFS] = 0x2C02,