Message ID | 20180724142926.13033-10-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 240C81805 for <patchwork-linux-mlxsw@patchwork.kernel.org>; Tue, 24 Jul 2018 14:42:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 12BFA28708 for <patchwork-linux-mlxsw@patchwork.kernel.org>; Tue, 24 Jul 2018 14:42:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0729E28C73; Tue, 24 Jul 2018 14:42:58 +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 3E80F28C3E for <patchwork-linux-mlxsw@patchwork.kernel.org>; Tue, 24 Jul 2018 14:42:57 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 41Zh0v48TzzDsGJ for <patchwork-linux-mlxsw@patchwork.kernel.org>; Wed, 25 Jul 2018 00:42:55 +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="yUJvMpkE"; 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="yUJvMpkE"; 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 41ZgkK33XszDsMm for <linux-mlxsw@lists.ozlabs.org>; Wed, 25 Jul 2018 00:30:17 +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=6m3cVHkjXU/WvpJt9NeW+/n96CaFK12v0YDrO2ZZUdE=; b=yUJvMpkEmnAahENcaEiJhfKYYDM1PhYjKjLhHUvsctelauErmt6cM+uSVKjneEopPdxtxwqPTacUsaoNA5BOn1PLQ4FnLX6vClQ3pEz+1LYNIbSKu7mz71l2cpOICMMdzQMMeDAcaUqQjJW6LIHLd0+hZu/cBsdFZ01vp639uaI= 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:02 +0000 From: Ido Schimmel <idosch@mellanox.com> To: linux-internal@mellanox.com Subject: [PATCH net-next mlxsw v4 09/18] mlxsw: spectrum_acl: Extend Spectrum-2 region struct Date: Tue, 24 Jul 2018 17:29:17 +0300 Message-Id: <20180724142926.13033-10-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: f4b72572-2a49-4875-eb08-08d5f171f19d 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:PADqNLvsvwvLEF8DdzMi64MMJVHzerfsJVMGOSXxToht5GG7wmSA41neH9Tw9nUKQVFI4/Tu0hfXSUTos6Ks9rtdRfdJ/mhEtAKVUvv4dLPjJLj6lKP8cKpZ76iNqQk2ORlHqyZNuHVH6NKPvMeKPbwi2r0K/Livi+WH46mKDLqaM6V2poTybYe9/4W90ez7im3Vw7RVd977XC1RDdSx8/LdRpxbGiMxvkbWLWsw1eHvlxu/lWtyFPLs7FEDwLxZ; 25:5RxnrzifYOFaHq0KmiIVdNYCtP/JcYcmEKx4ZFG8xbXSGRAgrkTlgTsFm4+8wAySKRhGkUbsDzHoBsQKwryV5Cq4BMZWe75szhEP9a334YMeF5BsHOT9wQ0m/KayaJNPjuOn6B66eVZHDhsk/fM3G121/nRNNw4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lD66/tgDADMX1r0KpdUTH4m0lJ2Np6SfkzPItkzVHZ7jzSLiuJtVeWI6feGMnJLV1g/OcIjL76nuK2ZC0HUccxcU5p2xGccZI6LXnfai8CS6phmbILWoxGJ3YkkoDzdyaAQsyfulJDdAmGGSHCXFoD8nMs0+Rr39Kh9Eho6g2TtfLorVFfe2VDHnDQPgEBKzMntPeqmvygtC6g4EYA== X-Microsoft-Antispam-PRVS: <AM4PR0501MB232276C2D116CC8DA69D82DEBF550@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:RvOG68DerXY3oTHcmmpRaP9XHBaf/2tCtYoF67O?= yz8NIfDQ2aFQctHWBPWUFR4+4aJ3q1zM8UPwEz5XB02nRxKsitCouZQPLqPf7k2Skdwrb9Ndglf8xpkrbOnGGO1ddmyharI1jKfKJ131vh5EsaVeIG9DXg6EWlj5GbmxTE14K3shHc+AQhPcQ9g6/XKfe1/H/2ZN63PluPTqrI7ilShEEqFVcKHtzptaoMJA3++VQp3f7lUDEvZ6V2pvrHlUW9W8zmS3WA5fH2L6i3utaxaUVxhV/i9RIead1Dtj9Gj1nn9rvXYpp+B3dzNintZKO0gsa25xJg9t/DNISAJGykMo2WMFG9qw2rcOwZJEo0qB0/LT4iia1PIX6Uf4L4Hgn6Exs0468bBtFyaDg8c6MpMYZ8UbhvlWqdlyJl7xzU8XBVt+bkH3vvbYrb9aU58u3ln8GxZSNz+Igzwtygqi3+70VDMSaf/yw5il0ZtJdfvDSqxnEadf2776sUv4Ewf/hofAEd9BWbZ90HBMX316bqFY0JX7omtEP+Mf6an1SzvjWRQmh3Z9Z2FR2svu6RKRid+egysjebg0pPx5PRBph4ujVjOvHXa+/2dpI2c5AtoT+tnYliY6MCtc5TvWBn+4pLQr8M1bO46P4zAkRhnaslORR90yZyCxZQJYf9d9a1nWRiGiYSJ7agQdDBVhzECCXjm6iKGPA2bhHhb8qBJZS57L1QKitPZMpyvg0qRzIDd/YJGLCXOUjKirRpSZvXHUNnf9dOkgH0Pr8itchVl50FA48TUqx8eZyiMg+znRVrkuBs8CQ2VOUGcCJAo9oFt7lyQ6GIlbpMmyA+Ofs7F7ctVodSA5FFxnFAIEJnhrFtH4txl0WpZsi8AF6HgOSaDsO/JCMSoGxEIp0acLQjvktxb55TBswvReF+fUTYbc5LpEXQgAeBIgw4/qzTMadqD9ip4QGqVcvB501ZVoerL/inhZhlaUvlyjPzhnC+GHz5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kR9eg47EdeVgcvKu75VOq14JYGcunRzxTCuUcsRo6uMxo9pq/MZN4Vb1ZwFdXt+G2rEj1hkPQW5PjTl93GBSFfuk7pyy+vM/BtAekAVsGDXxwzkrM5J5wCQ4ZIMmc7n/jZbAA7k/q5Ms+wdDkqE8g==; 5:rHJo5ugnaFiNl61NrDCZTNx9WiL4oQxWtpweEP9Wv/i/1+8KrwC1EwVAXjd0DpJcct3FQuDtjErWdaqniulbF1Mi+iSbSVAVyXGDcY4ageGMUUI8g8QPymcZpveMEWiU4kkmM5qhdVmvkyhM98WhYAV0catMqnyRyKnDKiREai0=; 7:MHrVZ5kdDl1DpV6BQnlRXmyy1tu0B9TzLEtGvrjHtIZL6HJirwRBsLNVnH1Zz0k3Toe6AjZA1d2+SBw4o0WLKBWWgejuuUyxsnpKnEpUJ5epc89GXmRLCH119ZW8T6m+hp9oMPQJsHlVowWKGzS16rk/jeHIJxXZaOjaKzYyjVUUJym7iQ+eLyFwrdYLqbAcbPde9LvqG9qSABRXdNdAZxFUNqvp58jsYj8t3Vu/1VwJHZN07jYynuiaU5o4rb1K SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2018 14:30:02.4112 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f4b72572-2a49-4875-eb08-08d5f171f19d 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/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;