Message ID | 20180724142926.13033-6-idosch@mellanox.com (mailing list archive) |
---|---|
State | Accepted |
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 6A64F112E for <patchwork-linux-mlxsw@patchwork.kernel.org>; Tue, 24 Jul 2018 14:42:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5884828708 for <patchwork-linux-mlxsw@patchwork.kernel.org>; Tue, 24 Jul 2018 14:42:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4CA3228AF4; Tue, 24 Jul 2018 14:42:48 +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 6831528708 for <patchwork-linux-mlxsw@patchwork.kernel.org>; Tue, 24 Jul 2018 14:42:47 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 41Zh0j4s9wzDrJ7 for <patchwork-linux-mlxsw@patchwork.kernel.org>; Wed, 25 Jul 2018 00:42:45 +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="iSb7CxyI"; 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=104.47.0.68; helo=eur01-he1-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="iSb7CxyI"; dkim-atps=neutral Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0068.outbound.protection.outlook.com [104.47.0.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41ZgkG0g7TzDsMm for <linux-mlxsw@lists.ozlabs.org>; Wed, 25 Jul 2018 00:30: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=iSb7CxyIvAbvL/p/YuLYRignVSAlR7VsDZHElo2ZFd0xpvEDr0NKBKE0xKouXWEcL8otLNqo8ZiYWrrkD9Mk3UhFQUqLCHM1h53CVaXAag2quRyhNWFDLls6+5l0Y5MRjNbSYiEfbXGsANnpEdH8bIAuvJ2FjO+1BosbyuJ1ebA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=idosch@mellanox.com; Received: from splinter.mtl.com (193.47.165.251) by AM4PR0501MB2322.eurprd05.prod.outlook.com (2603:10a6:200:53::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.973.16; Tue, 24 Jul 2018 14:29:58 +0000 From: Ido Schimmel <idosch@mellanox.com> To: linux-internal@mellanox.com Subject: [PATCH net-next mlxsw v4 05/18] mlxsw: resources: Add Spectrum-2 eRP resources Date: Tue, 24 Jul 2018 17:29:13 +0300 Message-Id: <20180724142926.13033-6-idosch@mellanox.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180724142926.13033-1-idosch@mellanox.com> References: <20180724142926.13033-1-idosch@mellanox.com> MIME-Version: 1.0 X-Originating-IP: [193.47.165.251] X-ClientProxiedBy: VI1P189CA0018.EURP189.PROD.OUTLOOK.COM (2603:10a6:802:2a::31) To AM4PR0501MB2322.eurprd05.prod.outlook.com (2603:10a6:200:53::23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a5afb8ad-2f31-45c6-08a1-08d5f171ef13 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600073)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM4PR0501MB2322; X-Microsoft-Exchange-Diagnostics: 1; AM4PR0501MB2322; 3:H9TtYX9GigICpe1gSRIulr+45nLnG9sSN1BbQMuhE1NpfKJcFT8xZeUO2E7+InLxSq7D9oXFUYxQ4+fxySIJ/EqMRaDMTlPCue53Vnspw0ARqC5Gc0Y63MorX+6cVVEECDFpopMK3N+vHPLDqrQLpsuA4Kl0V6hlQcX/ykFzCpECEiyrqqCqAng9VCs9R/oejJuD4pFfzb79ofNDAD0A3oeZscMr90RZAM5pkha8n0HmqqBBH2qFGhaH2d0RvH8m; 25:eifA4iItcAghip1eKJLBA5suRwV52/36j0INSfCdZT7mL4pJ9bTzRwnYux1ku0S6jzUSrlATrQ1M742sdHTvebqwPaCpo3VP++htgiybkUfmE9PKSiuqIehK/lnwZi8/WygHDBOebIHVXPNUWYhnzK/urfrgOFVjAbSY+9C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bZBZEBfGsDrqElorrlcpFq2ghnhnfIoPnJvXcwUvHeDuiLIy0OCpuJuXA17Gl9m9RvUFz1kghd71wsJQ8zSrwEgE4jluathS0InZOFGF5CA52TjpkOWG7f2mR/bKGvmme2K69eEIeRbFPATYyW+Ku1n4xMrY8hJS+2KFzJpGr0S8kplzT+YdCu3qCTPreCR2A== X-Microsoft-Antispam-PRVS: <AM4PR0501MB23223B2BE3A80958B8E53BF8BF550@AM4PR0501MB2322.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)(10201501046)(3002001)(93006095)(93001095)(3231311)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:AM4PR0501MB2322; BCL:0; PCL:0; RULEID:; SRVR:AM4PR0501MB2322; X-Forefront-PRVS: 0743E8D0A6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(396003)(376002)(39860400002)(366004)(136003)(199004)(189003)(53936002)(97736004)(7736002)(305945005)(446003)(34206002)(107886003)(6512007)(486006)(4326008)(25786009)(26005)(478600001)(6486002)(11346002)(16526019)(6116002)(105586002)(2616005)(956004)(16586007)(53416004)(316002)(3846002)(66066001)(1076002)(47776003)(2361001)(5660300001)(68736007)(51416003)(50226002)(2906002)(76176011)(8936002)(37006003)(106356001)(81156014)(86362001)(8676002)(386003)(36756003)(81166006)(6636002)(48376002)(2351001)(52116002)(6666003)(476003)(50466002)(6506007); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR0501MB2322; 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 hosts) X-Micros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JgYU8kmXcpLbhoBmbSLecYGe6YCx1u9sPv9cTNLzQcr+jaIvHLX7bvTOtYT26VHlt0nPAShF22ekMuOHiKiB8w==; 5:5FGwTjdSnpe0fdylYxXhu6JY7wDJRJ5E9wx+0j1bMhKg9TN4d9S3mPZ/pBciUJtnNuEkd1FphIb8D+h1jzctupbsgg/gQkxeYIGb2jNoHhF5B38JebW2e09Iv07n0bQbcko1gdRKMv+58p0rdDOsPdAbdDVL9GA6JiPN+QrVZrI=; 7:HdaSzNW/o0Gf4aG071VsAlCNZ+oTpH4Ah2itwb2IrwABMM6I8B9RgbNujexZJJXY2YNQtCLlcb16CQW72uC4APwBfk2WAmp9rJPyI+Z2a4WzHJl23FKUGS1LKbE6mwq1lmSc7mCzu6k2103fHU5NAhMDRYjUN07PgQldRSBQ/qngXbIQg6lQY0snYZbMy40viCG5PI/m/dsfpxYQXBICFPia/bLeGYJjFkfmIlK9F0WQFOmueAmNnQdVMlFVmCBr SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2018 14:29:58.1299 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a5afb8ad-2f31-45c6-08a1-08d5f171ef13 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0501MB2322 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,