Message ID | 20180724122611.13150-8-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 B3ED513BB for <patchwork-linux-mlxsw@patchwork.kernel.org>; Tue, 24 Jul 2018 12:27:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A25D52870F for <patchwork-linux-mlxsw@patchwork.kernel.org>; Tue, 24 Jul 2018 12:27:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 96ADE28779; Tue, 24 Jul 2018 12:27:19 +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 E20DC2870F for <patchwork-linux-mlxsw@patchwork.kernel.org>; Tue, 24 Jul 2018 12:27:18 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 41Zd0P0YlCzDsFQ for <patchwork-linux-mlxsw@patchwork.kernel.org>; Tue, 24 Jul 2018 22:27:17 +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="jNjT3Ya3"; 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.64; helo=eur02-am5-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="jNjT3Ya3"; dkim-atps=neutral Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00064.outbound.protection.outlook.com [40.107.0.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41Zd030MXpzDrD2 for <linux-mlxsw@lists.ozlabs.org>; Tue, 24 Jul 2018 22:26:58 +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=jNjT3Ya3yKoqApq2puvKsZV9UMiFBQ05F1qUdPkAOuA/+IXiCjqZL2B7Vxbb1yVOPG/51COk225cEgkG4IL/KLAMP0jZ4E9I2rUD9NIM2AkPoE2+O9OWSDG7ZOAccvy8tMMUn4JrqPCuBYdjziYN4xLJduWy9IxmP7pDXF2IA3g= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=idosch@mellanox.com; Received: from splinter.mtl.com (193.47.165.251) by VI1PR0501MB2333.eurprd05.prod.outlook.com (2603:10a6:800:2c::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.973.21; Tue, 24 Jul 2018 12:26:44 +0000 From: Ido Schimmel <idosch@mellanox.com> To: linux-internal@mellanox.com Subject: [PATCH net-next mlxsw v3 07/18] mlxsw: spectrum_acl: Enable C-TCAM only mode in eRP core Date: Tue, 24 Jul 2018 15:26:00 +0300 Message-Id: <20180724122611.13150-8-idosch@mellanox.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180724122611.13150-1-idosch@mellanox.com> References: <20180724122611.13150-1-idosch@mellanox.com> MIME-Version: 1.0 X-Originating-IP: [193.47.165.251] X-ClientProxiedBy: AM4PR0101CA0050.eurprd01.prod.exchangelabs.com (2603:10a6:200:41::18) To VI1PR0501MB2333.eurprd05.prod.outlook.com (2603:10a6:800:2c::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 36ef3d26-5409-4397-8ead-08d5f160b7e4 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600073)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:VI1PR0501MB2333; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0501MB2333; 3:wx8Sys2o+TnLNErkF2O2U700J9kGEByDGdW1mcm0NGAeyiNO9ygK1eDfCNy47EL1/6Ir8FrBmWE1mfDm1hIxvIvISg4JZwzdLSdBto32o8b52l/qRR8dvyIyatqbqCK61szModWd3T30Up9K86flSKV1h8jBy0rj4fgOxRNkJmoBRp0RoDQZbj1B0Lp2t0dbWwjkjRHolPRrig1f0BHscl9xLowK/mbN7/eA1amgyISA1OUmVB+3BD04UpbDDpko; 25:ftpShgmDb6JxYz5v57XliNvhUdcstaZaWhcbr0BHF81cEZCug2SkSP9p9jNyjv9CI+blwaiGP5GNKZ4HSA4WUyJTiNP/wv0lZBUnNLZLUTk22VHJpieGaGYkdkLiHGY57FE5n15TTLiWZfh1/kpFd9DpC0g5/5NW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JP2rANll8im+bp0WVIdlEEdc2J5rulzHPICwoz3QmCbAip1Sl4XdKg5COTC2i9ASF88zRmw/PFoyo9DohAO4MfM53iYjHdYBrtYeeDbsdpYred1H45HuWYN+ZGPo1lR66H5i1kjukslTlDTjvOsp6lD/fNmXAvBiNQd73EH8b6k/9mD4BopA/a+YTb1ACVqlKGp9B5H6wWwWqP+XJNOeDHwJ3rQ== X-Microsoft-Antispam-PRVS: <VI1PR0501MB233340D4BB1CE79240622D5BBF550@VI1PR0501MB2333.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)(20161123562045)(20161123560045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:VI1PR0501MB2333; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0501MB2333; X-Forefront-PRVS: 0743E8D0A6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(1496009)(39860400002)(346002)(376002)(366004)(136003)(396003)(199004)(189003)(446003)(8936002)(6512007)(48376002)(81166006)(50466002)(97736004)(1076002)(47776003)(66066001)(2361001)(2351001)(50226002)(34206002)(16526019)(7736002)(107886003)(14444005)(6486002)(53936002)(5660300001)(6636002)(6666003)(305945005)(68736007)(11346002)(53416004)(6506007)(386003)(6116002)(8676002)(81156014)(36756003)(105586002)(106356001)(956004)(76176011)(486006)(3846002)(51416003)(2616005)(26005)(476003)(4326008)(478600001)(37006003)(86362001)(316002)(25786009)(16586007)(52116002)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0501MB2333; 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; VI1PR0501MB2333; 23:o7zX5qvTOqfHU/bMEIcQc5sd2m5a+zW4IyOhZMr?= Kf627GdcTdls+hPfVVdCoIi383FkPg3QoeCgIRxC2sJ6PuttzFLbNyrKucF8RuMIlIqM7Ked3zfXK1w6Dr30cJZs2juCdjgXhps8driR3XkMwqEPA29PfeLusKhPCs5LWcMwhjmQZtGevQleO2MI0jjCFOLHiH7hSiCiUskUq8btVzXf7nxFmj/MWJDnG/R4fIVZ0GhataR+Ns2JRlw2fy4KlRvmiji3xaFgLu9QKExa5vp47flQ/1mXdQnQj/88ZB+sHvEG783j1GtjwGbmuoNzUQJ8Qy4ssTr+YyGNWsR62HWVT4A0myKPX27zDzZ+r4bR+m/KEgdAtKvAxE19fwpK6rXJRVRjKbuqrDag2gxVgr6Z/ibuUApuaUW87GXpVObJfkO9J3gnxDZjBgjxhYjd+TYg5XBxq4WsGeYei/yk/ut4aOvVTcW9xYOWfyCdAW4BOQozqmXUh4UbrzsF8APuGguONFw765y+kpl+MpH2oIHT7xz8KXo02wSYqfmaaYEdejhQDIgh35gixxtxLbVszg4QepgeGIFIGn7WONQDD0qjKExZu6/CgAGQiBkr5UqRTjKVyakKjpvedW1Y0l8ZoyoE04X6eAYU4PFitZl1Y4Qnw9cMk8deg56U5kw9BETrrcaUDYlX/CelyuWVkxyf/3mIeOVekXcnTN4NISYag3ZTyiHWWi9IyN1HUGjhAJaOCMxaolcNAPQ3fsTcVr0Kw74Syvx6haaWQ3wT8lZy+cvBWBZXnDBeAaZd06rmbkD1kOs0V3+QxLlZLDdwFO0+K1lmU1ZsUgznQKvKxPePIhDhbjnUBugAEpQ2K9ZEY5ZdoRMG1po9bXfCuesIC1t2uo4DY2s2AZfhDEu7pCjIlUY2oPBnT+jASrkHb9x1hMowThlfErJRki2WcoafP75Y6tL2sw32Zvq66JMKpEL2h+FwwqfACGwW4NVT1gj/y4w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CbcMw7xYtVWCY1OyatdaowSu8uv7oc4za/NuGip5ECuO182X151qTglLBq4RN9lUQ8xTNZMRlFID/xcDMU3x+5LFJQVg1Qn3PNnvsW2ftbgRtI0ekovA9KjpQd6BLoUu7c2vVEK/BOzVCQwOU9DJhNjSPQ==; 5:KeEN8rB10AZAYH/RqpnD0TjN07t/mFcQKuD7h996uP9KJFdKuLbgZx77wfqioufDq7GL3X6SvRRGsQh7V09u6FhE7Ivke1102EwwpDIZl7hkFTF5uTxljI1uVhnMENpYjMso8U4m6RzubUNATYFOtRa3g9XaCeHEXueGPVQ2RXs=; 7:k/kkMwpYDu2iIYpDFFJhSc6q9VRlo7BRawNQVNOCfeXefnwbAWzkE/cK0XOKsTgfc6jwU12j7b8LsRfMEdU5TZMVrWvrwqGeCkRdRh5zUoVHk+mm20M6t+YRU6ghd9t+HbizbVPA6c1AfzgU7ck2N8bSKFklDh78tgxZCvnxsWakihUTbyCBrW/+JYJi4aZpoUuhb/fgaios3T5u3MMIS9KDRlzjlCHxtIKvgyee3SMDUwsVuELQU5YxvkmhwTNK SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2018 12:26:44.1432 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 36ef3d26-5409-4397-8ead-08d5f160b7e4 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0501MB2333 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;