Message ID | 20180724142926.13033-5-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 1DD7F180E for <patchwork-linux-mlxsw@patchwork.kernel.org>; Tue, 24 Jul 2018 14:42:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A1A821EEB for <patchwork-linux-mlxsw@patchwork.kernel.org>; Tue, 24 Jul 2018 14:42:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F270A28803; Tue, 24 Jul 2018 14:42:42 +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 50B4821EEB for <patchwork-linux-mlxsw@patchwork.kernel.org>; Tue, 24 Jul 2018 14:42:42 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 41Zh0c3TdKzDr5Y for <patchwork-linux-mlxsw@patchwork.kernel.org>; Wed, 25 Jul 2018 00:42:40 +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="Rjv3Km2M"; 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.88; 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="Rjv3Km2M"; dkim-atps=neutral Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0088.outbound.protection.outlook.com [104.47.0.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41ZgkC73f7zF0tm for <linux-mlxsw@lists.ozlabs.org>; Wed, 25 Jul 2018 00:30:11 +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=bE+8KZAkRrXL/IbW3DTdYTUFyQ8xnS9XO34ZXOQeeRI=; b=Rjv3Km2MhJtj4/lX5Zgu2+0G1frFDTa6Er5i8LhZSKCBwwA2H3LM2ecGwdUr+Fs5P8dojVlujs7eTLjX8wsiNGfzrpmpTEZ+QTnSyWsTwVLnVnWKA16vZffgo3Gb+3nJUKLMas0CG7h9Y2zvQr4v033G0Iou5pqnjlwZfLUmnfQ= 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:57 +0000 From: Ido Schimmel <idosch@mellanox.com> To: linux-internal@mellanox.com Subject: [PATCH net-next mlxsw v4 04/18] mlxsw: resources: Add Spectrum-2 maximum large key ID resource Date: Tue, 24 Jul 2018 17:29:12 +0300 Message-Id: <20180724142926.13033-5-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: de8b42a9-0f92-4470-36c5-08d5f171ee7f 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:AMRcsSz7EjNMIOM+J9Vs5M67ff1LUT01h0PjDpxODYVkVj6Mbi0msFlBRQFAdUisGWohbKxJQp0zXKUvlvtUD+Ks91RkMb8Eln9eChrx312PFBJyThNvHd6xwnmVUBD4luli51o3gIpmzLxpe3+EYOjtuvTbpRB/mRDeWDgWz7Qso6SHw+X7I1ga1ZUBd6ApkRvc7Hcc5+Pd2yRhj2QHr/Fm9hpbSDjWThy7lZXdmEqK9dG6Isjjh8zNyIrYU4zL; 25:Aax11jHssTYBYpOLHZB/oWAcrJCKih0aIlDVgv+VmkwKcM/rjARZcmdyloZT7NiKIMQHdmADbBn1H+67KQemZfiHydIyzg8o4BCaMHNTWgQdo6slcihjLeeVj35WxzxmmGLFJhYVkBIC3b51yvOe+kjQosKCpJoFWBpidqdkhFhUS5SzgwfAcGbpfGo9h61l5RopymXYrkMu1AHKApXb3g+yxzTJeUAlyWMw7W370Bg8K0R5xmARb/cGCmeVCF/z3TBCobvICgx33iitnKJiZeImGJTbKuShkybg/U6T30At860DxEfKxbuIgJNIa4BpwGMatTFQx/P/e805SDZCXA==; 31:xtTbwvGGN7SOhPAxmWU1qRrC/afqGAba2vODViruibETbfMhO8LdCip1n0ObNMNs+Ae8bOfXFCSpGDqg4STPZmY5EdUp+CEpxPvP/qy/aBBUfYaYQK1FPbXdbwShcuueh1llrSZARs8zSp7riziPp72oMkEMqrBuRx6H2Oi6Xiy/tWJMcCNHLfj/h159oP2BhVvgJEaWFTrkHptTNuEA0I7k9EbJkSJrNlSdAaPqv0w= X-MS-TrafficTypeDiagnostic: AM4PR0501MB2322: X-Microsoft-Exchange-Diagnostics: 1; AM4PR0501MB2322; 20:+Zorjacp+uuFFHsM2EyJukYd1soEnT9SRsCgi68k3NQuTQK7YOtOcoZO+YQRkaiaqrtsNGy7JCgFcR09ZKpdH+OVXq0YwSbub68iFqeUrJhnKCKDTEikeZTsk6cTapVuIH/VSO3NTICZkUxJGsnlV2dt+SlFccQPaSSu1XCnkZKEwyN7ZdPMmFWzOlpYlwbT7cEBFTL3XbLsiA+uuzGlHGQwGg7MLAS7uVtoyzAjfIn/VF7oi2ofYq6ttT97VHojX8kanGX2S/MiPZ+fvfm6tC89lRkr5D/4N5p7UR10+/2Bt2uPC33fyvhY/5INvzrJGIoVnfIhj/SxQTGDd6DFWBexEZKN9tVO8+8AIiiu08NDMshE2JSKvE32mFwO0bxnoupWcXc9BkBwIl5eILf76xc2AbABdzZbwnn/oHCT9EQNvN/lLPIyh/UZ4nMJ5b8s6nvWjVs6x4JIaFTObRQ0LeAa1UlGNq+fo9poHGm0++KT75lKXdFNbwWstI985agr; 4:G2ykQ6Hz5+rfLZJUYmrTfFPo4xo8mQDFs0IZxDlScuzd6u0INwGNXdD96QzqGpvW7molKxi6oRh0vKl3DyhEm1zv5xNNUoCuVCCAJGGcZ3PnP+yqJAxeUnXRNQIM5QwoaAVHyGRkt/zyIOZ3/3nwqWUhFDWRIGqysRUB6y696b4tcqw4i/dWhDmPG7NzVE91q3VeNvC9hdw1MKLAxhBfOTYfECjLdSykStvUo/WJJc4mnj0d3hjrfAylEANYIRyAksSZCK3tthRkY8NWV/DznA== X-Microsoft-Antispam-PRVS: <AM4PR0501MB2322933B4F95307AF844BBE4BF550@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)(14444005)(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: m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NsLN7LHP2PvP4hR/88MSnOmeKzQLVxdPRmm5FoICVwyYqVeRRAx2XAmKW0sBxh6kA1MvWe5SH8QsczZkGfCbJ0oBiyuzZtCwsCVsl7sthwFcw1Y3w55pz14KwJfSpzzBvQhHmNRFttw3wuZpA==; 5:ETW66/8iTzJJmZq64ynB40uf49igUQApuJygFhKPJmp5xe0VrVxvNt1ewiBDlUSvISuPGVYUUkD7I18SR3YOncXIzyL3tuO0RRm9RHimHFh8q24OSoDS9My3VcaiTMM2F5dXRjokx8sOTV+BgcDgmyYOEwTtsi2vb0v4zj+ItqI=; 7:B3aa3swm5P7SwQtzGeTbzgLndIiTREjpY5XMloQcski4qMQYamEJV3Tjhi5OHgwrbWcufy+BqDw7eEQxzCqkQ7PFbC6jd3stDz1WTEAthGfvpr73qBJ0VPEkwZdw2N3wrB1KL2+5/NDtsWtmCBFJo3TjM7L5yQWJDVdamF/Rep1iMVkt5bLw7abc9c3+ciw8ts17LnDAhp/6MdS6lIRkcRfKJSKjkzWsBr7H44mmoj4kBjvlGdX1WDXjpwtixHpx SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2018 14:29:57.1612 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: de8b42a9-0f92-4470-36c5-08d5f171ee7f 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 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,