Message ID | 20180717153657.16324-10-idosch@mellanox.com (mailing list archive) |
---|---|
State | Changes Requested |
Delegated to: | Ido Schimmel |
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.web.codeaurora.org (Postfix) with ESMTP id 113A3603ED for <patchwork-linux-mlxsw@patchwork.kernel.org>; Tue, 17 Jul 2018 15:41:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BEC07296FF for <patchwork-linux-mlxsw@patchwork.kernel.org>; Tue, 17 Jul 2018 15:41:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BBCCB2968A; Tue, 17 Jul 2018 15:41:06 +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 F02A92968A for <patchwork-linux-mlxsw@patchwork.kernel.org>; Tue, 17 Jul 2018 15:41:05 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 41VPdD1lZlzF3J9 for <patchwork-linux-mlxsw@patchwork.kernel.org>; Wed, 18 Jul 2018 01:41:04 +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="G94WIjwa"; 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=2a01:111:f400:fe07::603; 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="G94WIjwa"; dkim-atps=neutral Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-am5eur02on0603.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe07::603]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41VPYR1YZpzF3Hd for <linux-mlxsw@lists.ozlabs.org>; Wed, 18 Jul 2018 01:37:47 +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=+MKYJSZtReheSH/5MdDFTc+ZRY8NpksF/wi+3m+inIo=; b=G94WIjwa4j8bfbbpkrHXKcpT4yiIkeEnhtfwrV1VqXCDJuXeSrEDHjX+WRtlWIer1tSePJq8fkREg0IkbLaHT3dJD33KWJdU2C7mwubHwmtoRQ5v0KW8Hmf38k9sj/POnowEcj8FylF/7mBz4hXplc1MjFvyAEV8pAE3FwFSJxU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=idosch@mellanox.com; Received: from splinter.mtl.com (193.47.165.251) by HE1PR0501MB2330.eurprd05.prod.outlook.com (2603:10a6:3:27::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.952.21; Tue, 17 Jul 2018 15:37:34 +0000 From: Ido Schimmel <idosch@mellanox.com> To: linux-internal@mellanox.com Subject: [PATCH RESEND net-next mlxsw 09/18] mlxsw: spectrum_acl: Extend Spectrum-2 region struct Date: Tue, 17 Jul 2018 18:36:48 +0300 Message-Id: <20180717153657.16324-10-idosch@mellanox.com> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180717153657.16324-1-idosch@mellanox.com> References: <20180717153657.16324-1-idosch@mellanox.com> MIME-Version: 1.0 X-Originating-IP: [193.47.165.251] X-ClientProxiedBy: AM0PR02CA0020.eurprd02.prod.outlook.com (2603:10a6:208:3e::33) To HE1PR0501MB2330.eurprd05.prod.outlook.com (2603:10a6:3:27::23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 807eb5ce-ff25-4100-7dfc-08d5ebfb3827 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(48565401081)(2017052603328)(7153060)(7193020); SRVR:HE1PR0501MB2330; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0501MB2330; 3:NshvbYD0ANd+LxTY3suWWK31TenpowyTdMdDkUqjFIHM4mwjRZ86S8VPnVRbqyFSWR1Mu6C5Ib5RDKqNJ3BdriA1ClKg9WspribYAOrv4beR5LSyzaPl2aG2066uYheeutUcu6HUvT5QB67hkIDDDvDMu8PdGg9Siv0LRZX2qlcy+Vgkom0XKfcYfY46F9jJnHdD96DDiUtbpsHCRCDPXcg0VXc/DlP7w0rn0iHg6Gm+GSNhAN+zRsPcQi/MeF4k; 25:Sv31o585hfCT+Dj3/PEFpeCVgHkYP01jiUQdQBtchMoq+9jqSHeAUt7HWnBmPJzRO3sTEDvfrpUD8GpQaTmDvxUVWNzEHjegCC2UnAm2c9wM7xbxWFXTVHaIXF61GwL9hRLzjkTXi/g084IEYy+qbFyab9ocWWb6AghUnoEy8A5aU43f9CZU/gA+L9XiyuTOViw24iwFhE9s/h3jz3LMS9thx7JAHDwR3uwWdSNRPkGNVdwzNIBaPp3bgVDWXKvdBa0ky88izIB5ihO2RTaOtOjvIWqqfGMKBVFUhZJ8E/Io8JRN5BiUyNXE4zRhHU871riGdEwpKjHBd1uc9219EQ==; 31:GjckqtUl4eEnddviSDoPOdJVEB57NnHyXxrz4a2GkjV7D9/kAXkY03FdTVprG1sb6ro+xhXIqtYZumA56ycqFo7hEfCmBvk2kQfNfPReFtf54xCHqDstCmh+xPKoa5hgSRRuP22IfO6yI9ZM/qv51QWkppEkewEeIpt7GVQCrflexL4nNvvZdghGlXuSO5vmuCF4HMnbyHH8gFX+fsviAAn4Sly86/iY/V/BZUtU3Fk= X-MS-TrafficTypeDiagnostic: HE1PR0501MB2330: X-Microsoft-Exchange-Diagnostics: 1; HE1PR0501MB2330; 20:dq/SquafJR7+uyBYoC/SNXjjcOLdeuHQlxIyexVZ+uPl4w8/fw16nrLOcdy8S85b+TqIRFTsj2ddrfjwq8yPGqaECaymuBnXEdWWPT3l46qtkHSMnt95YoiJpRsgOqpRhw0hVG2OdMN0TLKeSawpQbJ+XZdWX9Wj+uUqghb/hCSdK7queCVdLO0kq78hv20U6NmypS/uGz6TWfenZxbtZSBuynRiBUZalaqMq0eMOmWvwX4mO/+FsPM05kxZk8nQqQsQvwuUDRV4i70KKk4qhF0m/J/zLMNRmFNorq1zEHey99ICcj77L/SgSbM+8/yJyrPi17TjM3dlgfiHVw8sRfpouOIAoHOybOeEcuFWml69kbRhucHUR8L9KlzRwUy2iARlaYGOclcmJg5fnNcXiIwsogvBomDc3SmzzicCLZOJORspDjonv2goZQHQYkuJ7O4MMYqEFr3dY6vZQS7VpcEowiyBfwWVDe113RFwS/T8hVucQhrf+rZ1AVXvJncf; 4:3klztNIgsFTFiNpF6zjB2LMMs6wUKTk0mvuFitv26fWNONeUV7afOBrxrU91SqmLBmZask9L1yDBy+VMpwd64xpZn2BwfJp9W8OhquqAJ6hTzAG6c8dFP5cF+DuBbunY7SIPn04dyEC03/17QuYnSXzLuYpueSW9EDhHDqcY6OqdKIEN5sujQzRYXrVBJxghuUMFxDrbr3VZhx0JuSjbWcb8Rv+V5a4zx15vmVXDroydp4qyFbSaX9bOpf0aFmbsc4rf5HnwFBpNcy1cP0gTsQ== X-Microsoft-Antispam-PRVS: <HE1PR0501MB2330CB3904AADA9DEF6A8AB2BF5C0@HE1PR0501MB2330.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)(93006095)(93001095)(10201501046)(3002001)(6055026)(149027)(150027)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:HE1PR0501MB2330; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0501MB2330; X-Forefront-PRVS: 073631BD3D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(1496009)(396003)(39860400002)(346002)(136003)(376002)(366004)(189003)(199004)(51416003)(2906002)(8676002)(476003)(8936002)(6506007)(956004)(81156014)(2616005)(6486002)(2351001)(26005)(386003)(81166006)(16526019)(107886003)(53416004)(486006)(105586002)(446003)(4326008)(11346002)(34206002)(106356001)(66066001)(53936002)(47776003)(76176011)(68736007)(478600001)(6512007)(316002)(50226002)(50466002)(52116002)(7736002)(2361001)(3846002)(14444005)(16586007)(305945005)(37006003)(97736004)(86362001)(6116002)(36756003)(217873002)(1076002)(48376002)(6636002)(5660300001)(6666003)(25786009); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0501MB2330; H:splinter.mtl.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0501MB2330; 23:iLBiASQdT10yVvCjVDv6zxgHahcj+nM2XA74V8H?= =?us-ascii?Q?KnroMq8TgAhjHZMxWXPT51oClC5BmveU6IVtsO8trMvjC1nARyIkSkJe9RIG?= =?us-ascii?Q?c7hmpg4XMMOrld9L8svAvmnf7CEwWyASyMrMmZOyP0ov+BrJEGJkoFheL+AO?= =?us-ascii?Q?xZTDnCZKXLcjBHouBXHOcU4R10iT24fg7gorPgob3luUZB5mRhBLo/XBwdc1?= =?us-ascii?Q?PC8cxG3jW4IMq8VihvmE5v7CuDQxWmbO4w5Nj54OuhH7sMP51wwGuRs5yv0z?= =?us-ascii?Q?uTfd6IECtqOY515/sz1+S1gP6WYhycfZe5cYpnzjKFKwuvVpjRgpQC3HiQJA?= =?us-ascii?Q?qpmB//OW7BuDWvoFcK2npJLr2xWitB2+gkDQaoSXQDYh6aXZQQ5zdU+TfKh5?= =?us-ascii?Q?YgIKBXhXkvDwE8+GmEUSrQwwA1LDPelEAJxbjqWt3zi7eN6e628Lmyi0b68C?= =?us-ascii?Q?gX7s/8KQoBA2XHzrBm+2Kq1DNjSCNKtBTtkePirrMrzyn0xdX/XLiYlCC9X3?= =?us-ascii?Q?1MP/v+44bNtrjWiXL7ofxk1+Ns/V88FY46dDFEcQ9NHc0RFaQsh/B1+87+Wg?= =?us-ascii?Q?APRn0ZLuqR6Uv4fPk2usG7THuitsaBVSHxoJvpC43F77ADLvKvi4hbHExqmY?= =?us-ascii?Q?QNxfemyBjgpDmxfh1tHIyZy7UMkQ0jtTprklEQCVV+OT5TnPVov77jop/Uxh?= =?us-ascii?Q?Hd3CKnKi+csSeTCIjk1scZprrznpRJg6uKW9qfax/A7cPy6qImEa90BRbCgf?= =?us-ascii?Q?nV0487BHTvLegGNN59jj+5SRwLcilkPUKQCYIaB1H8k9qZcgZU9syfMCgGdy?= =?us-ascii?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= X-Microsoft-Exchange-Diagnostics: 1; HE1PR0501MB2330; 6:hiafBAYRxVtACXiG3chx9ZIKPzEialSozz6rdKhKKho34QdvuDoMakpkpeaqvTGLJj+SO/LJJ3w39r7ITz2Qbzr+ix9J1l7J3oHd/0kD0ox+IUT9xp9V4qFtRPPXNxcPRWIeROYKf94FYgIOF/PvoV9YgMU3p3+InlBZK6/vWVfw8GW8bGPmtG/fgmuqy2KsUyztY2xsIjq+Zt5GVASERGkkVz0zw5JpHS2lDP/Irx04YD4LNOGL6fjj+EQZ+BP5ty4Uvek7NDpwtUODkQGKdVc3QU4Wl6gv7smeUK3k13VdZ3k0PUV15yhA5LwoGmMUSDIdHxPXO7KJM71xx9LFxQURRZFE1Jzw9/zmzQPEl7Bw73K/M896o/t3IIXxPgz61F69Msh4MY1OfzGQl/pbpJKs5sAdZ0CJPP0Tpb7gB69BSEPeNhOO/5M+KKC/TcLNR32drBz2X3cFiniqEJK08g==; 5:px/DWxaKbwvPdC7hyUAc8h2Wv/nwnARxgaxyGFVddv71Y2t/sAu3TmltNFhzVKxuTeHHRVxPZULX8SB8dAi0ioiuB39csa3LLVVm36xpQzmml4unw5Hc+QMyfjJAJXEXd+TBNPz2r9RVTxIN8AK+zVst7y4qybhV2+rEx78I/+c=; 24:yf1kAhGRx5y9aGHSKLmeELyn7oAVfODwUlHXwwZcb5dolFTHLq12AfGY6BS/RUDjYY3qcfcRaiYd02CwmMIkRXJjwqlqSOKXxaY85snmQCM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0501MB2330; 7:ilAqxHb42ilzrz+08+aOpFZfHYQ+dhzAJQ/QIaIknRT1yaXxw8nynEQlMgQzwk0oZ5pt8E4cYI77gippyHQ3F2I41F7i+5uiTsUiqwouzSLDa8OYJDb5LK+Turfs3MKYwl+42TyKckV1mjUXqQR3n3QJ2MffXFiI5qGI5vkQA2Qo8POO1q4U91tey3DIexxKE/u2uLBm+Sni0OCWOHJtEkIDSnXueqn9y+DlxN5KeufeJusxcvyYa4+1lVAaIzeE X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jul 2018 15:37:34.7817 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 807eb5ce-ff25-4100-7dfc-08d5ebfb3827 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0501MB2330 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 |
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum2_acl_tcam.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum2_acl_tcam.c index d7f1fb35ea2a..33787b154e74 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum2_acl_tcam.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum2_acl_tcam.c @@ -45,6 +45,7 @@ struct mlxsw_sp2_acl_tcam { struct mlxsw_sp2_acl_tcam_region { struct mlxsw_sp_acl_ctcam_region cregion; + struct mlxsw_sp_acl_tcam_region *region; }; struct mlxsw_sp2_acl_tcam_chunk { @@ -127,6 +128,8 @@ mlxsw_sp2_acl_tcam_region_init(struct mlxsw_sp *mlxsw_sp, void *region_priv, struct mlxsw_sp2_acl_tcam_region *region = region_priv; int err; + region->region = _region; + err = mlxsw_sp_acl_atcam_region_init(mlxsw_sp, _region); if (err) return err;