Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750998AbdISJBr (ORCPT ); Tue, 19 Sep 2017 05:01:47 -0400 Received: from mail-bl2nam02on0041.outbound.protection.outlook.com ([104.47.38.41]:9264 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750747AbdISJBp (ORCPT ); Tue, 19 Sep 2017 05:01:45 -0400 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; From: Razvan Stefanescu To: CC: , , , , , , , , , Subject: [PATCH 0/6] staging: Introduce DPAA2 Ethernet Switch driver Date: Tue, 19 Sep 2017 12:01:32 +0300 Message-ID: <1505811698-7338-1-git-send-email-razvan.stefanescu@nxp.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131502853028308852;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(336005)(39380400002)(376002)(346002)(39860400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(8676002)(77096006)(86362001)(16586007)(33646002)(189998001)(5003940100001)(97736004)(2351001)(305945005)(105606002)(2906002)(356003)(81166006)(81156014)(8936002)(50226002)(104016004)(4326008)(8656003)(50986999)(47776003)(39060400002)(498600001)(316002)(106466001)(53936002)(85426001)(5660300001)(48376002)(54906002)(6666003)(68736007)(7416002)(6916009)(50466002)(36756003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR03MB2699;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11OLC012;1:Qnlg4xnTo1kjx/YaUxrwychRzN2VCh5k9Dh3x8Ebcuq8vDOJrvvEyTPoD2EH6KIjm/havttQ9rG6kCz/a28yQQfK7Ak2ls2/8rbXsdKxDn+54M1dpqsqOuydLrnkJkzE MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 36a71fbb-0c94-491b-8618-08d4ff3d0c28 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(300000503095)(300135400095)(2017052603199)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:DM5PR03MB2699; X-Microsoft-Exchange-Diagnostics: 1;DM5PR03MB2699;3:61memcMQDSz2j8PZHPlghIrfcDwLU4EIGk2T5dzjeNzsSJKiSxY+R6bdrWXJUzBcWWxYL7YjTLPUz/f2ddbDOWE4JCV/OKFkG6vr68WILkrVGxbVoQ9W0a1Mz++ibSgJKqD8CF/ejNOe+jcuS9QW4Ku0RUc39dQ0dKEnqEEJWGq575v7hNfqtdu2fR/e1v+8TGfUXiLV5fbeHr46UFXEqRWe1MLQBJl6zVp2P4gsS+rs8UOvGVfvGMNM+AX2BfVyytW/Gvg/IMfWt5hi5nNwlVs6dmUtjw6QqgiLWgZXVtvQLnHgwRqy+IALb8sXO47cGxcJ5NbbrtrCvsj4cjUe0dZOhY8tglQSjpVuxfK2Pls=;25:oLmGu7jXvuTDp3nQ1VFPfZSCGI3SCBwA8LgpE+cVtn5ZTaYjYrxaIhhbYp746XwjMr1gUcIMgo3KyHhObr1WB0R4J4cnz4pCoM8e0/VVdbFtzVacZ0qk8y9qDDvUFuRcanAIeZSreZ9jQVKjKZvcIa+vhD48I8h3qI+AsplwezoRDf1e1TJPElmB52UBI1W5iT5DtFczl7zaysxD4Hfo3DcXXUU10/qrs8Gb3z0Ru15XK2y/O3dCeXga0kRVhNDfZURh+q3rD9bUpAwyqCYvop7dwCeHYCE+LJ8cZ3LJla5dCYcoeUxU7SjjK0M81ngq6BLdHIYdiEBSoNCaq7XjXw== X-MS-TrafficTypeDiagnostic: DM5PR03MB2699: X-Microsoft-Exchange-Diagnostics: 1;DM5PR03MB2699;31:MMCBmpnhSUGfydWXt5h2qkyuLscSpEBraXg/6BIOxkxE0we7/2k7ijJ9Nf6DSdgPfGKxnMdnotTTsVxOcQBRSpmCY9mOCUSN7LPjWNwrNdvaQLrpygj/H8/+Y2r+XESgVJ++/13i1TqBq6m9a6X9WgLTBNlPwhlRUX1IkgTJNLzjC6yin55FM17Ta9EXzStWYEDZZ5YQMkjkvYFy4O2yG009jZbhbj7Kfz/6iNUn5yg=;4:hh2jxd1QaqT+HWm0Ene6bbJ2+FaHKBTEHJkQA7wim1EkNu+3yQReTA8Gl5/xa0IURbz6QA+2scd5GicG/B5O4KAE+w51pglaX4y02s5CaiDbf3fI6W5nOTS2gvCs6gV8P7/LDHzYsHwtKdolEMfddWx9K8pxsWvl4VNvJBEShybj1XXNGjQBiK7BQs9kdm0CkSzICRNbg09X4nDYTkp6awmPbipl/G3YOo+jyHnQNA45giZVhjvua+w6cgxV9Sbu X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(8121501046)(5005006)(93006095)(93001095)(100000703101)(100105400095)(3002001)(10201501046)(6055026)(6096035)(20161123565025)(20161123556025)(20161123559100)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123563025)(20161123561025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DM5PR03MB2699;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DM5PR03MB2699; X-Forefront-PRVS: 04359FAD81 X-Microsoft-Exchange-Diagnostics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46z/MX5tvwOJzzmog61aEWBJsEfIM7OUGBLf5o6hHu8cUpR1o9Nb79PnvhfXdv56/aGsDUM9RbuveJxHL//CMBt6bCnWch918agzQ9NS/3JvRZ/9PNl/RoLqG/Q0Ii8t2BTLd+Hc2dymlsab67Z3bITOsQ1pgOImlr1irSIE0M6s3F4Ih25l+rFngMmG1gmZ4hlCng7CPF9ctIcQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Sep 2017 09:01:42.6592 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR03MB2699 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2257 Lines: 48 This patchset introduces the Ethernet Switch Driver for Freescale/NXP SoCs with DPAA2 (DataPath Acceleration Architecture v2). The driver manages switch objects discovered on the fsl-mc bus. A description of the driver can be found in the associated README file. The patchset consists of: * A set of libraries containing APIs for configuring and controlling Management Complex (MC) switch objects * The DPAA2 Ethernet Switch driver * Patch adding ethtool support Limitations: * no support for control traffic to/from CPU * only DPSW ports can be added to a bridge Razvan Stefanescu (6): staging: fsl-dpaa2/ethsw: Add APIs for DPSW object staging: fsl-dpaa2/ethsw: Add Freescale DPAA2 Ethernet Switch driver staging: fsl-dpaa2/ethsw: Add ethtool support staging: fsl-dpaa2/ethsw: Add maintainer for Ethernet Switch driver staging: fsl-dpaa2/ethsw: Add README staging: fsl-dpaa2/ethsw: Add TODO MAINTAINERS | 6 + drivers/staging/fsl-dpaa2/Kconfig | 8 + drivers/staging/fsl-dpaa2/Makefile | 1 + drivers/staging/fsl-dpaa2/ethsw/Makefile | 7 + drivers/staging/fsl-dpaa2/ethsw/README | 106 ++ drivers/staging/fsl-dpaa2/ethsw/TODO | 14 + drivers/staging/fsl-dpaa2/ethsw/dpsw-cmd.h | 371 ++++++ drivers/staging/fsl-dpaa2/ethsw/dpsw.c | 1147 +++++++++++++++++ drivers/staging/fsl-dpaa2/ethsw/dpsw.h | 611 +++++++++ drivers/staging/fsl-dpaa2/ethsw/ethsw-ethtool.c | 207 +++ drivers/staging/fsl-dpaa2/ethsw/ethsw.c | 1526 +++++++++++++++++++++++ drivers/staging/fsl-dpaa2/ethsw/ethsw.h | 91 ++ 12 files changed, 4095 insertions(+) create mode 100644 drivers/staging/fsl-dpaa2/ethsw/Makefile create mode 100644 drivers/staging/fsl-dpaa2/ethsw/README create mode 100644 drivers/staging/fsl-dpaa2/ethsw/TODO create mode 100644 drivers/staging/fsl-dpaa2/ethsw/dpsw-cmd.h create mode 100644 drivers/staging/fsl-dpaa2/ethsw/dpsw.c create mode 100644 drivers/staging/fsl-dpaa2/ethsw/dpsw.h create mode 100644 drivers/staging/fsl-dpaa2/ethsw/ethsw-ethtool.c create mode 100644 drivers/staging/fsl-dpaa2/ethsw/ethsw.c create mode 100644 drivers/staging/fsl-dpaa2/ethsw/ethsw.h -- 1.9.1