Message ID | 20180722131712.30578-5-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 43B011823 for <patchwork-linux-mlxsw@patchwork.kernel.org>; Sun, 22 Jul 2018 13:18:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 30D02281F9 for <patchwork-linux-mlxsw@patchwork.kernel.org>; Sun, 22 Jul 2018 13:18:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2532B28385; Sun, 22 Jul 2018 13:18:55 +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 70D12281F9 for <patchwork-linux-mlxsw@patchwork.kernel.org>; Sun, 22 Jul 2018 13:18:54 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 41YQDr5Cw5zDrM8 for <patchwork-linux-mlxsw@patchwork.kernel.org>; Sun, 22 Jul 2018 23:18:52 +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="xE1EFcr2"; 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.51; 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="xE1EFcr2"; dkim-atps=neutral Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80051.outbound.protection.outlook.com [40.107.8.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41YQD70FhYzDqmj for <linux-mlxsw@lists.ozlabs.org>; Sun, 22 Jul 2018 23:18:14 +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=xE1EFcr2J4ym5YefYjdOjRfYUNE8PnMG+QI2V581BWlEVyGnR3KpNV4DD3X80VzL/EFtbmY2fJjlqh/rVS9meF+l3Fh5q0LgPXZG3qjylmaq7L7GVOfi4vRZYp/Ok8UDD4OUTY/9yqfIllFJK3oMuv+YgPdoLaNrw45jPo/z5vg= 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:58 +0000 From: Ido Schimmel <idosch@mellanox.com> To: linux-internal@mellanox.com Subject: [PATCH net-next mlxsw 04/18] mlxsw: resources: Add Spectrum-2 maximum large key ID resource Date: Sun, 22 Jul 2018 16:16:58 +0300 Message-Id: <20180722131712.30578-5-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: 125cc654-0cab-4aa4-b492-08d5efd58b67 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:KDYCJyfAabdo5gSFzpkC6Epuu8AdFuFRvace0UzWnoQZ3K6G0yDfJ4rVrCaEvrBjt4mUV5SNtaoBZMnNcSRRPUrvUaOIcCUdhMqq/ranoPyOZzcwYz2pTvyIDA+sl5Py0wKUDyvmP4lMs9SAREG8ahjY5ifBcEM4XgEPz+ZsU7T0zcEP8xrrmWW5Tq1Mc8hC2Pn6DITcEFwur8pQ/BoQQyPFtKk5lh/cBZE+AU67iIvDzY620uYgyLlNM87f8jAE; 25:jgT51X2vq33JTBP94HV/Txp1HXr0v7Bdb6wflq+ZEt+IhLOsKCHjZcedOfK7/w2flBxW9qShif4YVSSZENKziGNCoNGilS8jMV6KgpLL7GjCYnC6kqVftBynp0w3PjUh0NV9XhVueCt+aSRvknwQn5a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W7mzTavyCcte3BOHN8OhkA9g5jt8fWas2GylCaz8PCw8f64cMHMJpG7+p11Ks7lPzXfXb6zPGlS3oGgOAQW36MqInVfm5GbiZGHgcEiUzm8dO7UDfiTQ4QpFhccUTcwQov7PS4cCZcH+AbZ396l8fY/SN95b+Q5XMSJULAS5rgq3u8Zad2BBn6Vqoz/ba5p47dzZlXlS6j415G7jxlzqxwVMsxlfP9tw== X-Microsoft-Antispam-PRVS: <HE1PR0501MB233172031D1CB8F06355F5BABF570@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)(14444005)(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 hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0501MB2331; 23:cYU8zh0m0gCQJLWaKSr/kyvFnvWUywgChLtPC5+?= x4oLOGSWZwhljfu7FkrBvOSkwp2zYVtKib9B7oAlt/1bUKSCMajPtxBOXeIHSqbfaDY81j/2wiWT3PJvxIliWm0ymelne4IFU0nYBS9ULsuEsADCYyL5ZFS11wIv4vzQ6x6MpUamcvlxffzifkaz0kIRgVmc7gL57xZCkur/ga12ivlgIZA6lKo8n2uuob64AvGQWEZkhqqDEnb3ouq7CZaYGH59lgurPgrh+EMNlxvBa7Xxj8bvszAJYGUnfp2/sd+Gjf0+pBLzC3vRI1R/4DF3ZWUlJX3BwxpHdZnAS3QM1AapQP5oglziHr2vhc5I8HVnTsl6ox2cE9ZgDUV1qSxecsQLjW0I2/dAeKbKLzoadms7kuEk3xBGnxeXfA8bluRkUtrJUetrcLmqbfwsctUZNNmZeKgeKCUjb5Kkm3nzFE3R3vvfD4h5bStxgo1T5EZVn13M52UasQ9J+m2x1UTFObpQQdv+cq+C2nGPF2Jh2Vx0sQAWOVmj/u8vBjlsd8ZfsaD6mdkqN+60tloBS7x8VVaVRXOFsPdvRMjD+ysThonwVBFi4MWYvby/DGNRNRMz3xWtFHQxJylTuI7p/sV8vXlQBx7zqTCMScj3SfFWgGY+xSLv/RR4MxTYwNmWucjj+LnG3gZDCMuur+3Tq3soM0vUbdfiN27peOY2MVkXSFGGISSHWr9H2kbmOY+q3Rgas2KeHyFGC1HQeXhMReMtlmvlOnFK5ilADTCyitKK6SP1ATyQ2Od1OK9nvGoS9hvnmBIC3+UfBdjpsvKMHI++1VCOz/HGFFIkJZXjy2hBtUAWbiB9REoCytoBchDhfuBribXSNWwILxlnMzq1OQb5VzkfQGBwjzn5dKviWIEohT01p37JL2eWXsYjt/YTb1qV68mn0Cuhmc/9m2GPxy4sJWhY3I2d+GizMCIab7kFJX7W7Zr8JVhtmLBdDH5gyuA1Ua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k1qEfd2BEw652CU9D+YkpksWzXh3w0TXh75GAm6fRUXvUWBqPvtNRmb3wZ1yDC+ayxFMjiMsMuJCP+0XeGL7eLZ915RkVzdB18Y9Kw==; 5:ty3vCgZ1vgKDakQg0BBgkjLEYeITgY84DGdGs9ngZlDV19xn0O28patWKhoPAiiAtbZ/RUXeE5ksnVFHdAAP3JR8WpxtJrPeGb/KBJXZo1oyMxDS4LroY/MvqDPurtaVR7WQmfpLjSRfs/0+f1+cNhu/w1bbiUNfSZb4tyzjPJM=; 7:nizSUcOMoCYLODoOwkq1KhvXvX4hkh6PuiFOaIMnIXE7Fo5r6Jwspmiko7QIugEaFE/vO/qQuVTFgkyzyorO2gavSdYZGl/dx3DAq7+vqiMIOYjMBaWP8GScOJUYXZTwTjXeFsOY1xZmK0GQNDSzlC0Hy/3dZ+Lzvc/Y6f0njOxnTiawz2FF7hvXtXyCNf1U0olhkGc8Ri941RP2Z02xk9MRSwy+bZp1jDtG9ijUY4bxXgWrRNOJEhhzYEc6/6C9 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jul 2018 13:17:58.2601 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 125cc654-0cab-4aa4-b492-08d5efd58b67 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 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,