Message ID | 20180724142926.13033-8-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 01F66112E for <patchwork-linux-mlxsw@patchwork.kernel.org>; Tue, 24 Jul 2018 14:42:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E4EB2212D6 for <patchwork-linux-mlxsw@patchwork.kernel.org>; Tue, 24 Jul 2018 14:42:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D8FEB28AF4; Tue, 24 Jul 2018 14:42:52 +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 2E81128803 for <patchwork-linux-mlxsw@patchwork.kernel.org>; Tue, 24 Jul 2018 14:42:52 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 41Zh0p2GwpzDrSg for <patchwork-linux-mlxsw@patchwork.kernel.org>; Wed, 25 Jul 2018 00:42:50 +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="OERnm/Xv"; 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="OERnm/Xv"; 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 41ZgkH6T06zF0fX for <linux-mlxsw@lists.ozlabs.org>; Wed, 25 Jul 2018 00:30:15 +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=O8hxm/lP/NRf/HYfVg8+X7VREZMskmoeilcXgNkSOFo=; b=OERnm/XvZh8mrHZtGWiSix2sshFsC7N0iLV6Hl4Qf23wk38rH4gnye8GcXuq9aEywfNO0WBGO2XpxkzLeSIWS6qUulCMRXUG9z3nTDY3XXLjYdbONK2H8GotEU10vabp57SiBl7yE/b3Y7UVTeYtFSDAuai67gz4zFcme8N4QYo= 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:30:00 +0000 From: Ido Schimmel <idosch@mellanox.com> To: linux-internal@mellanox.com Subject: [PATCH net-next mlxsw v4 07/18] mlxsw: spectrum_acl: Enable C-TCAM only mode in eRP core Date: Tue, 24 Jul 2018 17:29:15 +0300 Message-Id: <20180724142926.13033-8-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: e3e08b93-a23c-4b3d-0bf4-08d5f171f07b 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:rCZzVsyxYfbZSIWhvuX56Ay2iJmO458ZqBiOoHVvzqhwc9NHXSRDBRDYqyIRliIsHZCGBbWSCrqdfkSf0OyIQk1CvzNjjiXGWoy60WFR6P75JCy+nGvPvMKU9dkPB78lU+5IqErDdhZRfOZmQYVXAYovKIM5LiFYbNeT95xwNd9xn7I2CTCDK4obL724wWmkum/ApdeUq3n8n4Vbp9JL5s5U3xLQIbkcbqpn6/6hXJyMPQqGBNMq+SflS8xov8sB; 25:oYMklv4QI7s7e1FFA8km0KMd4eZPyAWq1u2lth0azXrHyU8p75aAgzRpl9MNycCuG29i85TAy2fx2vzzBVFHoKnLVDLfqTCwwckGXHCic3kZ0hqFbfUUVaVXoX6F2cL7vIkqEWj+dGctZfWgq3glkihWkUZP2lvS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TVu7nhubxufZrosc32gjg/jRlf7+ajHisCp68q+1dcujsNhCz3FTJN0VU5CVAytbeQAiha8jHPkOFddBIneDNaTUuRj0AG3uvsikP/Kl/FB6nzDnPTR+Vn+TBMZ2JOyfC4Je7XimxjQ/FtcXjgP+oz+eX466zfTs7okhXkFlDZmYSImvZN7YlUEqDsuUFHnvtDH8nX5gbBpb/qnfg== X-Microsoft-Antispam-PRVS: <AM4PR0501MB2322C4249388BB75B5D63FC9BF550@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)(1496009)(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: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM4PR0501MB2322; 23:IygSisMunZXcia9O+qga4zK/hqfk+fwEao8Elwa?= EdXk5sE9DRPVJRTebzyeExYvDFiXtI9U5hlHi6iNIhLhNg7yciSVfEomhGdyH8YLXUj7bekhOxS1Se85LI19wfz7xsHya08txUvTrB+cPNpvj6VFZIKd/JpywXmvFDQVeIk0JI9ljjJ0oMFm9CjfHLX2UnWnAoA4YzzUor1xteDQTTRSpY74Oo9vRQ4dnCUhdUBsEDzIAylxb5Dk20+PFEnRjTm0p9mm+wZffAhi1gzRjIJX/GMfTgpTP4ryQPgH3OsBEJ67l/l1/joC9TS0sMkvFilefzTgavR22IIHUAjoGSJsLxTIST5GLRPFpoid1F4dc9gUDi6JmqxS4RWvkdKIP37mRVYtXjXLBE9Yx2kby5ml/VOmwxxy5n4dt8kH41l2cOglcAAuraei4xIERBSWIhkwUhPnQbXjgT7eT2klA1Nme0T+kNV0/zz8bfxrydG2mKY9H1VNHOpkCn8pAci4CpeO+uMG67+B23/8HX646xNFBwJd3mu97ZCGDdAgWZYQkXy/Yx7z8j2ajKiSwRq7DbbkuGVz4IXTvn0oGPWQBXh/u8s8ALrXnm7t52zpIE3IQri/y+RJJpLebgq6pU8OJREljLqVj7Y7151nrqhrECpqsk9krxumhwfzrsv2quMt1w1JeZA/SKzP9Bzie4btSu3GrG6y2bWVL5OoePHme0EnrVP+zRLKsGw8KNswtOvwNDlFTMxIFTBRv7LBr3qS4BBGovpRNX/XA38iq5J0KBaEXted8UoCqkbPrdKkz1welcKIZFuLsLxVMLwVb0davJEbMD8t6Ixh58YcBqkWg+HQSFlx/LJVApYrCloOBjeyHIMi3xjH+yhRE+C3KkoJv4sdN6huJKrOi8F3ZXZt+P18GUjfYnUteDqCH97gbMlBXqB7Hueh7NyTHjCmbFOr4MC3+fe5PZ0AEv2Ri0Clmk1SR03FQmOkcCHkSCPAUwNaFoDwEBbZu9NSwSTH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qnwyINqU5x+q3FTOxXooa0Qp5c3RqhN4Xq1cHeHv/RF8a8ZwJvxsrokSJ2Eu3wvznYdDSSx/Yz2FgqTIC/r9+3FbG/1aKPdRnzftUfSiUhkCxRQl8De/v33WECjhAVkzQ==; 5:Xda/dHMzBdNjFN9+qliXIj522bdlfcxMog46PbuwTMk7kWPLgJx9ePeqEsAw9gCEiBiS9pDnENMX5AguslhUtiz0fESejyR2G5it50nrYDaS0Hzs/cc5+vyOsSkItYUZMNpmyUss6c849K0XeNxjuiWfUoIe/7LAjdg6U3REmg0=; 7:xILtf9560yETf5re1x7G+RhKmbYgLNVOeMt/PIsW7v5oxiPW566HqPtwHT6ghRSLvNy5r0XZhkb5JoJI8jChh5v4w1jprjM7NvOeibwQvFuczd+M/iI27WMLJqK1h43eLXBdUlI/FcXuOv4zH+LdGYY+hmxFdb6T0OkLHezPkxke6btksl4DaWW2WBB0n8g98k2EXvEx2TZEtJZwPELs4O3t9HXrpEbAk4E+g48+zHKBASPN+nO/sfykWC2xKuzl SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2018 14:30:00.4424 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e3e08b93-a23c-4b3d-0bf4-08d5f171f07b 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/spectrum_acl_erp.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c index 960f29140b43..86600c780c95 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_erp.c @@ -879,7 +879,7 @@ mlxsw_sp_acl_erp_region_param_init(struct mlxsw_sp_acl_atcam_region *aregion) struct mlxsw_sp *mlxsw_sp = aregion->region->mlxsw_sp; char pererp_pl[MLXSW_REG_PERERP_LEN]; - mlxsw_reg_pererp_pack(pererp_pl, aregion->region->id, false, false, 0, + mlxsw_reg_pererp_pack(pererp_pl, aregion->region->id, true, true, 0, 0, 0); return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(pererp), pererp_pl); } @@ -894,12 +894,16 @@ int mlxsw_sp_acl_erp_region_init(struct mlxsw_sp_acl_atcam_region *aregion) return PTR_ERR(erp_table); aregion->erp_table = erp_table; - /* Initialize the region's master mask to all zeroes */ + /* Initialize the region's master mask to all ones for C-TCAM + * only mode + */ err = mlxsw_sp_acl_erp_master_mask_init(aregion); if (err) goto err_erp_master_mask_init; - /* Initialize the region to not use the eRP table */ + /* Initialize the region to use the eRP table and enable C-TCAM + * lookup + */ err = mlxsw_sp_acl_erp_region_param_init(aregion); if (err) goto err_erp_region_param_init;