Received: by 10.213.65.16 with SMTP id m16csp237848imf; Mon, 12 Mar 2018 01:51:19 -0700 (PDT) X-Google-Smtp-Source: AG47ELv/S828cJuX4W0taESNDXaGSyhrvEYVgJHwDP9P1OTpvV9EEWjBFnEn2Q8N6iA7hZgG4iWS X-Received: by 10.99.185.7 with SMTP id z7mr6137162pge.123.1520844679137; Mon, 12 Mar 2018 01:51:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520844679; cv=none; d=google.com; s=arc-20160816; b=C4NsAzsgQj+u+yFglHQwUAmWJ+HFqzOXQWxuaf/XwAFeuN43R6vwwu3bw+tzhL6LaN /VyjTFOFJUTLcSrFKsi6gFAQ0X0ZXg4e9dQUn+s6EP4OBoJ7ScqiRjgK5dDJ/+3r9UtS v8UKdt+DntunLu14K8fbG8jIZKE1/8vizn439NTPMxQi31YJxjLLTd/fssuVL7iXsodS aNVhk2JqMJ4/YDI2u4k9gn38a235bXHX8aEgvc4Hn2VfpAOCHxEPVCeJbrg0ZErJtsif 5YgvHbKPSVzP8J1owxAgl+9/3RleamnII8ldAP6q2tdfNfaMEufOwKo0ZJ+V33ayVMF/ ro+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=h0bV8cJOKwBwQ82iHwZ303U+ZyzF1hXf8OaPmtHm7+4=; b=ZGHf+7aKSoLBOQ2ZGfP9RwZFeXJhxCMn1vvpMjmtazX0jG2auP9rmjgQWe6k3lXq33 1eU3yu/aLcryhnbvLKkH/zKOJkEpBu/gBk6BZoW3vtDQpXpQyuem7kJe46rQgqqC9fcm ELoSGP5f6cLu/Tn1dpjCQGOcSaqy35STXQglkcV9gaOzgqfiGuJUzmVwuGLeGPJwX9RA 9AQy6VRSBfexmssdtpQLS2OZ5KwtTzQQPXy42fESglCdyIuh20PM17wAzwvFEVDMR+Sk jlaFMzITdMsd8CEg5UXigYlm0erVqpouR2lE2gBUpFhXqhfcEI6qzt2pP8EhsvfGYVIP f2TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=W5QjsKbC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t79si5413414pfe.243.2018.03.12.01.51.04; Mon, 12 Mar 2018 01:51:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=W5QjsKbC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751572AbeCLIuN (ORCPT + 99 others); Mon, 12 Mar 2018 04:50:13 -0400 Received: from mail-db5eur01on0075.outbound.protection.outlook.com ([104.47.2.75]:34848 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751053AbeCLIuK (ORCPT ); Mon, 12 Mar 2018 04:50:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=h0bV8cJOKwBwQ82iHwZ303U+ZyzF1hXf8OaPmtHm7+4=; b=W5QjsKbC9oeBAWazWDnvBdk3LdQ1jh+PK14muv6HlC9yTJVR/1/EpNqc7Jta9ICPG+q8P8CJg8Hxvmyl8Sa1hVNb0Co3INEzm2geC/msY+YqxaFRaD3/hCmPwabVPWYq55x+icFh+KZxo7wsz03FLRRwEdf8/y/XGI+qrmnQSyQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=razvan.stefanescu@nxp.com; Received: from rhuath.am.freescale.net (192.88.168.49) by AM3PR04MB0743.eurprd04.prod.outlook.com (2a01:111:e400:8839::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.567.14; Mon, 12 Mar 2018 08:50:05 +0000 From: Razvan Stefanescu To: gregkh@linuxfoundation.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, agraf@suse.de, arnd@arndb.de, alexandru.marginean@nxp.com, ruxandra.radulescu@nxp.com, ioana.ciornei@nxp.com, laurentiu.tudor@nxp.com, stuyoder@gmail.com Subject: [PATCH v4 0/6] staging: Introduce DPAA2 Ethernet Switch driver Date: Mon, 12 Mar 2018 03:49:49 -0500 Message-Id: <20180312084955.12686-1-razvan.stefanescu@nxp.com> X-Mailer: git-send-email 2.8.3 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.88.168.49] X-ClientProxiedBy: DM5PR19CA0022.namprd19.prod.outlook.com (2603:10b6:3:151::32) To AM3PR04MB0743.eurprd04.prod.outlook.com (2a01:111:e400:8839::23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 887a50c2-21cc-4304-9cfc-08d587f64193 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:AM3PR04MB0743; X-Microsoft-Exchange-Diagnostics: 1;AM3PR04MB0743;3:v0IYDx2r4qOOmTRJwgB7usICkZDZiH/Q2EguD4T6PE6wNpJ4KUX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BiF8VR0PirPQak/UOMd/TrHF8lB96+oSJ1XRgfVX3cYuforthQ1xGoPgFipm+YU6AYqFF5OemXGErbH7IFPH+U3hWcJ+8GibCf7GoOp+6s88v6Rm3wZW/JC+VOlWiINLno8yXT1mAE/Yce4GT9H7k+SqquNnsmK/cDZm4nBPNr3Db45frer30wbAP2QnIzp5hHIJAgS3+bRRZeuGM9WuUPcDCbI4vYk+RbYR3Wb9KuZgg2/BZfLnU1bGn1+nSsbetnRJTXATsV937EHvyt033KOL5D+spDzCn7dRgUYRJq66E7FIdDglow12Dk/oXil2buHUeMTIqwfMu/DIkWkwFHnQByA0pdfd;4:p6ZUVS6tELiLN/xpKbZ979S18SoWDldxGinuytKsK6qyx/TLGnPVrZlhagZugwZY++Em+gm3ZY6eZBK0zx4vcjjiPIuTIyCMP1LxJ4yILYpxsHOeqvqOT+F+/gd/9To3M8f1itMXGVS8FzE1qYZLk/Vf69kvhfxoBc1Dfi+OM8Y4b8VpXYXispSE+Fq1gVkuQxAoMGlhBp4tIrpRSRmrPEeBby7EWdB0eArX4uLxMRbAd/lBuz/NmOPgKkfOcRWVjKvCCc+BYUSLz65luwclJw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(3231220)(944501244)(52105095)(10201501046)(6055026)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123564045)(6072148)(201708071742011);SRVR:AM3PR04MB0743;BCL:0;PCL:0;RULEID:;SRVR:AM3PR04MB0743; X-Forefront-PRVS: 06098A2863 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(396003)(346002)(39860400002)(366004)(39380400002)(376002)(199004)(189003)(54534003)(1076002)(47776003)(52116002)(6512007)(36756003)(6486002)(39060400002)(66066001)(51416003)(386003)(6506007)(59450400001)(5660300001)(478600001)(26005)(4326008)(53936002)(48376002)(6116002)(3846002)(16586007)(6916009)(6666003)(105586002)(2361001)(2351001)(25786009)(8936002)(97736004)(106356001)(2906002)(81156014)(316002)(50226002)(81166006)(16526019)(50466002)(86362001)(68736007)(186003)(305945005)(7736002)(8676002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM3PR04MB0743;H:rhuath.am.freescale.net;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;AM3PR04MB0743;23:xXkmwQv87oCxAJ/Qcw0aw1uL1JVkkqysGyfTLD1ql?= =?us-ascii?Q?9vjV2Rv96Cem2ZxnInkfu7XnawfNSrp+Syq5fCwcibeGJNhYoqSJvgH6S2Lx?= =?us-ascii?Q?ovBjqAQPzd0MHg1+d8JvoAepzUKeivzat2PkGNTLfT4+3DzAWNUU0IDzJQjL?= =?us-ascii?Q?KPQsRqJfl8Q5Cgt0kJ+5atVIWR9ApWnJKssxp8paICrz59hknCfOMUEtedMw?= =?us-ascii?Q?ob8xhldFRHhz3fDGu7xoa6TIgftCs0hZY0IIO/YgF/yJUFR5d7p+97fPFin0?= =?us-ascii?Q?Imj819r8yKyKDpQ4USOKZ9SjO4Lp8bM7dWKBfooRTAZOI7o8p4Hq7C7SGmBk?= =?us-ascii?Q?t9261qf3F+G3Zv+XErrwCodQTnKBt7lyZjphMGYHAavmRUcTUpzCFlIQB0mh?= =?us-ascii?Q?c+qBWHfMxIvfyz4qKbTUiiwAvGrsDgbSoUPMtll7JvOudBAcE/SHn+RvmEEN?= =?us-ascii?Q?Bnuo1UIheBn38VX2zmWMsFdWKP9z88fDHFOBjk+VspJxLKvC+zLYFieQ3rcb?= =?us-ascii?Q?eSuw88YfXRVG6inu+OzC8Ify+0rx1jzrs2IGj4CH7Gd0Ahiwqg+7b6QoSvzT?= =?us-ascii?Q?BABFkC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7slTGLhA7fiPKGJGYmBRENui2mzQoI1S4BoLDHoK61L8dfa3oBmGFnPzu5PcnKnKEjV/BTicRrGUlKabyAzZZEiDFWlCIkR4y4br/0CaRUnmIMW428cv1ncGBdhj17RUNf8IubqA8PEt8vtKFhce4s1V9Ij36+SngGYBQg/TX4WCcvRmc9EcOX2zFLTS109/KQV4qlbbOpLZwxoiRsljTFp0YjvMZIf+pnP8S0Rx3rWWox/uoYe2f5NqEDQJZOLhHrUgtAiM0BLqhiE7ont0FM7rk61Vj5Ba/ixmc=;5:DTS5b0eYdsxqewq/gSggimItdS7nTh0VVhi6wCls69oANI/bQwV7B+nhwkYLnE2Ngy2REtaqC0Pql1cEgxIBGPjfJsEzySfe02es23srO8wPRXCdQPhuyxLnXDR5WJSW0BYZnfRRwhmTS5QflKN7FH20+iYoWkxklaAMCmdBwQY=;24:OOIH0qLteBGnhXxXpJ3Xk/zTpj7Pb4SAnRhFZ8sOpGCircOcjESjblowRJICahV0EU3QyCOgQN7WANUW5+TM3D90Yw8TXCcoNI5mwPIx9Fo=;7:4kjQgzat1zWL/glM85mMl2LCrNNRq9aNVatURnQAKXZS8bf+piGLg0ArnRbxHQJqZaWFpuUzvkD+syy4Af/ECTIYD1mdPqxWmPkmpFqXMy1pTLXG9a2eKliDsT8ASPcrRHyOvBsOFCQYwzz8ijGGYC5S4e6TvgFfsVEl6E5fnuY2MPGgdPX2uRgpa9Q4ug/r/Ohc83dvVF6S/amZVtvRr7Q5irRJSKM0a6nU6R5BPHRRgLViRLg8xv/yu/+iYYh3 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Mar 2018 08:50:05.2971 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 887a50c2-21cc-4304-9cfc-08d587f64193 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM3PR04MB0743 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Changelog: v2: addressed comments from Bogdan P. v3: addressed comments from Andrew L. (patch 3/6 updated) v4: adjust to moving MC-bus out of staging support adding/deleting multicast entries to/from FDB avoid triggering console stack traces due to benign MC errors refactor TCI setting code to avoid code duplication fix sparse warning 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 | 13 + drivers/staging/fsl-dpaa2/ethsw/dpsw-cmd.h | 371 ++++++ drivers/staging/fsl-dpaa2/ethsw/dpsw.c | 1148 +++++++++++++++++ drivers/staging/fsl-dpaa2/ethsw/dpsw.h | 611 +++++++++ drivers/staging/fsl-dpaa2/ethsw/ethsw-ethtool.c | 206 +++ drivers/staging/fsl-dpaa2/ethsw/ethsw.c | 1516 +++++++++++++++++++++++ drivers/staging/fsl-dpaa2/ethsw/ethsw.h | 90 ++ 12 files changed, 4083 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