Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751734AbdISMqG (ORCPT ); Tue, 19 Sep 2017 08:46:06 -0400 Received: from mail-dm3nam03on0075.outbound.protection.outlook.com ([104.47.41.75]:1824 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750823AbdISMqE (ORCPT ); Tue, 19 Sep 2017 08:46:04 -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: [RESEND PATCH 0/6] staging: Introduce DPAA2 Ethernet Switch driver Date: Tue, 19 Sep 2017 15:45:52 +0300 Message-ID: <1505825158-8192-1-git-send-email-razvan.stefanescu@nxp.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131502987623046249;(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)(7966004)(336005)(346002)(39380400002)(376002)(39860400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(36756003)(48376002)(50466002)(189998001)(50986999)(104016004)(305945005)(47776003)(356003)(2351001)(105606002)(106466001)(2906002)(8936002)(77096006)(33646002)(8676002)(81156014)(81166006)(50226002)(4326008)(498600001)(5660300001)(97736004)(8656003)(85426001)(316002)(16586007)(39060400002)(68736007)(6666003)(54906002)(7416002)(86362001)(6916009)(5003940100001)(53936002)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR03MB2703;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD030;1:8AzAH/RnQyn8SZj+rLgNyUBqvDGoj0NGKba/oM8yAHbYWwCg//q0BVhu48WGGwyiOOvlAkwwMDAlBYfohthQZrQeAmoa1rqCeSGDnwewQ7gMVwBW1hWv7ZMhwd3LkC2B MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c9569776-5945-40a9-9c69-08d4ff5c62a3 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603199)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:MWHPR03MB2703; X-Microsoft-Exchange-Diagnostics: 1;MWHPR03MB2703;3:4io3xOr2VY99Zt3PhpEzS03qajiwjNIJCS9sJ2nrI9aclSA4fZ1cfnnJT/hFnY0YxYM+xfBK8OWKQGucEu8p1ByTeVhVGegaDuQ07bnwOA/5A2kyCND3PsG4QxQZ3lYgMkx4u8VUs5t0l8PYdKmtq3FcO4++EAP5NVOoGlUD0M935IIuGPV3I7dEmcykBhcJEfnnQA+1M48+wKkkidYmjdIrqT5HYx2r+HVSqeTRfDBuRMsroD7OcLOP+LK65FkLFq4OWT4QxGArju8+9uJ8vr63bmtbHM1z4NRhW+RfHt1qD7qIlMSgNJ5OjU8k6xEH72Ei3uE8bveJ08oa03j3k9j+D2iAG+JJtTTRQxKvvkE=;25:BlngVDvCJCLLbIG22mmsLGnjkLxIZ7LQpBEdu0VlBBWBBb7GxAIEhfZ9Ai9b4EEC/Gro6bjv7v/fvUNEpen4QYSbi1vZG3zOJPA2+NWvgubMQMxWL6Pk3DHRoKT0L5nvIrUhnXswamzm0vKnTHrP8/i/L18uvqPmAro2qaoMbFMiXNmGoBFn0ZvKEWalr31SSHhkjIK/F9GuVA2NQYkclXF3QQjlT9XwFhhht/aDadqoVDzWop5HBj+u4N/cgidvX+zayBkgI2Vmn9moFua83p7PVbkvaRG5cKLPnwiFVH9OFm9n2VRXKk8a24EwgWHFGDV7CRrt3jWppOImKpX8LA== X-MS-TrafficTypeDiagnostic: MWHPR03MB2703: X-Microsoft-Exchange-Diagnostics: 1;MWHPR03MB2703;31:OSRtsI2NkFg7Y9j2mfJlPdGo6Bx6auR7LK7JbYicb2TpHMGERTbY3NwK9sLz62d79FRDFK1lMiMoFI5LCrE/WJAj3By8pqzgpHyiJ2WocTd3jZb5BTh5VoNfGa3PrRJuwPhc2OsbVNPtMXrCl/g9NajfY0L/PqydAq8TcuMNB+Go8o4UWp4ln2xV3bTy3RxgTjCKBXayO2kZZuu9F+oqSv4p0bX0cSJOuO3wiJTKKxc=;4:VCvYeTNlLHmXyM719uHkc/JfggLm/VO60kVLvrbU5h9/nCgmLc2Qv7CL6riNz1OQ8Rl7G6bezEWZQzCwbWlyC5AXW2afOShjayUDVkUpHxYBQzcSoEYZ0kNcaqKsAq0VxBpeQykVilnXOjrp+ATR4BPENffmnhMZ5y5SMF8MKPCOWcTNs6pgEh3T/xeBGoW8QSLZHN3dzQx5knbYf2U7LvU6rUWtEB/a0oPEYMqM4hu9itZzRDfOoCJkXdyoL67I 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)(100000703101)(100105400095)(10201501046)(3002001)(93006095)(93001095)(6055026)(6096035)(20161123559100)(20161123561025)(20161123565025)(20161123563025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123556025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:MWHPR03MB2703;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:MWHPR03MB2703; X-Forefront-PRVS: 04359FAD81 X-Microsoft-Exchange-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EU1DZAsSrCpPk+R5wGs=;7:iL0Jf030AWqx2rYKQNC7TX7A/40rLLhVeeTy6nzuqwfn21KP/3Y1ihV2VFQeUjXaC2nnE+UrnLsKmgdKolLyg8EdaNumsAGHQav4ViX+2UUmyJgXpb0FfpkBnpJOsZevE/C4sZtQn+2H28SUWGeKQYkW9aKhOVC/LNPvayDSz7UFmAdwimQrojfzN2Ao6kZNsIIXAGhBdXCA3eSpEOqMPjl0Gh2cmddSUc0WaIF8gh4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Sep 2017 12:46:02.1330 (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: MWHPR03MB2703 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2361 Lines: 51 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 Resending in order to add the netdev list (and remove the arm one), based on Andrew Lunn's suggestion. 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