Received: by 10.213.65.68 with SMTP id h4csp364892imn; Tue, 13 Mar 2018 06:54:26 -0700 (PDT) X-Google-Smtp-Source: AG47ELvNsG8lY22BOtcZo22opdMavTTnmgbk12fZiV7Jw4M4zcZ4L6R4Q6eUAUQgdIHaeHSQX9Ob X-Received: by 10.98.55.7 with SMTP id e7mr729941pfa.112.1520949266676; Tue, 13 Mar 2018 06:54:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520949266; cv=none; d=google.com; s=arc-20160816; b=imhru5W20oTr52G3NiTHvFDVsxyeXIAghJByoltN+WkQAqTc5HGqW8Q/CKVIo72LKI TcncrKxWhT0LqXIp3dZ/2mwzWDjUcMJIRsmLhymXcemYtdOngXcBrAxi4l0sQGLKN3vJ ofFfhfVaDsi6XgBlPNJX/ih+b+Ge4Z8AewKxDBPM+bRpjjhbDG9MHMubHvqlKUL4sjBt MK7XCF5/oHDQfIg7KU3sfTDJzHqTXxQn9Qws9nQqnmYyTRUQhOT7sIVRN6ybiSPOT0NE BEHsFebbfpmDH/O7OlDU5xsl/2t++GSv8NgD6pomtK5cEhoiDknJTOp3HkP25lWOFH1T D1ug== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:arc-authentication-results; bh=/G/A2DdObegPmSRc0Ae1QUxH6RM/ErRLDY14ifcEzsE=; b=MFuXbu2XaPnqvJdyqolErZ100lDb1iTMUl11hNIIEZ1yrRtNQx4UdmKKU9FME3NDy4 Ut5VSFIKISu0llqh5pyB0vpqOUXkizEpvBVv3Dyjmxhh+xicC6bnHW9zzg+oBMkFYblI bJEA71R+vYaClvrICK8KjTQ/8vnsqVjVq62wlttOK/N62CzDR0gsUZ9z1GXPNX3yg8nw d3a6rfZhZqWbMSxyct6BPUmUbYlWNA5KqSDQuANeQpAp5gILHuts/A5TXiraJTuyNi6M zArcm3oxTc473mOIf1d+Byj0YQdy9JS1CvYx1REz2HLmvyHF/D/6jxSy0GhRUoR3KZz3 9bxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=k+efnJoo; 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 w8-v6si124507plq.641.2018.03.13.06.54.11; Tue, 13 Mar 2018 06:54:26 -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=k+efnJoo; 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 S932640AbeCMNwo (ORCPT + 99 others); Tue, 13 Mar 2018 09:52:44 -0400 Received: from mail-he1eur01on0082.outbound.protection.outlook.com ([104.47.0.82]:52000 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752992AbeCMNwh (ORCPT ); Tue, 13 Mar 2018 09:52:37 -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=/G/A2DdObegPmSRc0Ae1QUxH6RM/ErRLDY14ifcEzsE=; b=k+efnJooBQk5xwuI/QWM6thW2hVxrICTNfJA98Nh/vHQeQYWHmz1TntXw0XLPelyn84SLH1BeuAEEULntM/4xw1QZ9lDc7rVDtVAbAf97z1+i3ZiEbNJ3nOCkiq42bH2Xl/HNFNtQRWHJOfHHVB2Nmxq3Yw6MChr8vgFS/n63v4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=razvan.stefanescu@nxp.com; Received: from rhuath.am.freescale.net (192.88.168.1) by DB3PR04MB0747.eurprd04.prod.outlook.com (2a01:111:e400:9440::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.567.14; Tue, 13 Mar 2018 13:52:19 +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 v5 5/6] staging: fsl-dpaa2/ethsw: Add README Date: Tue, 13 Mar 2018 08:51:55 -0500 Message-Id: <20180313135156.3322-6-razvan.stefanescu@nxp.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20180313135156.3322-1-razvan.stefanescu@nxp.com> References: <20180313135156.3322-1-razvan.stefanescu@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.88.168.1] X-ClientProxiedBy: DM3PR12CA0069.namprd12.prod.outlook.com (2603:10b6:0:57::13) To DB3PR04MB0747.eurprd04.prod.outlook.com (2a01:111:e400:9440::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: d137c3e8-68f2-4b9a-b0d9-08d588e9a4f3 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:DB3PR04MB0747; X-Microsoft-Exchange-Diagnostics: 1;DB3PR04MB0747;3:CGkebtV5nz7H6i0r1jfOR9zOE0geSQvzLfLEY3u2nfghS4om5OPWXCj+ANN2B+V/fY2eLA6Hxv692C2pYaWgufJqGP53QTkmW1BCaiF986imvr66U+oVHOfAZjcQeSjNFWbTSGjPUJbkQijxC67UoWujSwIQc3vovoo24BYjBDjKiH8/4HjDlxFsaIwVE4l7vAR7ONrDZ49dAEk9tXXluFjnTclaVJFRI7dj3aN1Ic31ScPTJ3l4otmDnIuW1OvX;25:ecS9q5qd9tSLf8BwkbCjDRXWVfCD+mZIsx9U2jF34/i5cK8karudbOFbDw7CuJuGnBea2s+w7JtCojG22telPHZSCIs8QGjX3iVEkJjXFDBiEzz6B0AIqx+wABx0rLyfuqJANVnzy+yJJwBOVXlKcWZxGDEduv01qKfI3ps89UEXaEy4IZRE143LRdeUMTKGTq5vYSFRfFywDC8CkxpQ1TcpYPU1TxR8H3/XDdZEW0NWDaXIOhnubsD+u3VtMGHQ32L/NLXjTULW16YKm81jDruokvuQjCUhFu3xhnWn/Ca/vGhU94D97Gdwp5H/X7HV5fYy44Fxub4rue9Z8oroAg==;31:BZX0fuhjFa0QUZRkeNZuiiiU1IIdmzvftO9IPmbLMvbllfscXzrOJj9oXe9zkOWieb+rMIZZ1bNRzSBzCBqw2bT9w7chTNf2gRljK0nW3NRB49ZCfljkE3khc+APWALknCtbRW1yC7FAanhUV9hE3YVxh8WVfemLTIcOa1p0g23GYBeMZ8Hmm0bAi2knWPvGiAo/ENzlBjnzJ/Pybm9NIxcdkvPzWCpCVNpQPiMqXP4= X-MS-TrafficTypeDiagnostic: DB3PR04MB0747: X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-Microsoft-Exchange-Diagnostics: 1;DB3PR04MB0747;20:J0q8uct4Gh4iR0J3gqA8blJ5tt9mHFKu2zDf4xEYsq5Kx93g/NTk0dJJCc6UODvwrknKKMfce95vOX+j3t/s5OWaTkY+FwV0MWPwH8/+VIonYlBuWFTAsM+vqSAaihzO7unD5ChrmJblhhekWbF++tmNja3VeKeqhSPMNhUtizQRkNrJ1QmfpA7UikxndW5D0hGLztqVgibYpOLsQvvN3IOQxTTfTtnlARCKLp7nWC4m7KsfcfYy+VwnPkJV55CekLtrF8vbZ/0izWPoi6qZawpH3ZAwKLcx7aeHpNF8QNregV4kjulldXN2l9UPt2LZfS5u9ZzfcXp7ROUwYar2dCLFcDOWwKF7Y38hf9x/C3RlOGRgJyOQzd+/9FvxKgtoI0QOxeOQqwn1du7Vy1w/LEFAotV36mOCahRsfuOcmUIbh6vYzKx3X3Qo/0ZWLEGQW4mnbs0khXU0rbfS2SAKduQ1VjWyjpmtNwc8uziF/ZCBl29ycLiL3S0SFp4Za5Po;4:2KiFJyB4ILsxPEDlrKlG0fY6ZhC5hRACL895LJBQQHpinXcLKkBh2YJu+BsK/GGbxL9GPjN6huHAKF0tQZJW2rlS5NfFfe1oah0r9OJoUKd7B1XiHTilccZZ+51HgHSNisEwWUXdsH1gZ+owv9umL2e6HW4W1qX3TMNXQoAn4jnYnrJlnRmNjBp2Xx/Vo0YrxHsjhqhYVerqSxLPwHFM67zVoDkquqGJdMmF8tUa9HqG+rQsI+OjZz1ZxcbyskRxyzNJGvHZIZR6lc3ut+K8L2+B805LWBNeQu4j7bMbqXj5YVtj8ikWWfMdAPdvZ+Oc1ZtfI4SmKLwHxLAEVvoJpwLskOrjxrM0lLcWQRm1ZEI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(227817650892897); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3231221)(944501244)(52105095)(3002001)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011);SRVR:DB3PR04MB0747;BCL:0;PCL:0;RULEID:;SRVR:DB3PR04MB0747; X-Forefront-PRVS: 0610D16BBE X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(376002)(39380400002)(366004)(39860400002)(346002)(396003)(54534003)(189003)(199004)(1076002)(16526019)(186003)(6916009)(5660300001)(478600001)(50466002)(48376002)(3846002)(6116002)(8676002)(47776003)(6666003)(26005)(2906002)(7736002)(81156014)(2950100002)(66066001)(81166006)(6506007)(305945005)(76176011)(386003)(25786009)(50226002)(52116002)(86362001)(8936002)(316002)(16586007)(39060400002)(36756003)(51416003)(106356001)(68736007)(6486002)(53936002)(2351001)(2361001)(4326008)(6512007)(97736004)(105586002);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR04MB0747;H:rhuath.am.freescale.net;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A: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;DB3PR04MB0747;23:W7k1xIwENWA2hBKdjXgmcG9Plc7bQn55E1aWuI9Qu?= =?us-ascii?Q?x2HrcqEkjhCtrRt0quISHLe2njhNurfaaLpr7U4zwNfToxSkv4yXVdSDllWf?= =?us-ascii?Q?DUD/L+WCCUTG+lI2GA6jSA3YyxOF0n0+s2NAlAS20QZDylw7WeeYu3StURjK?= =?us-ascii?Q?vRmtz360pixqOtre1OlGsIcD5Q2wcQv6Tpg5ffEY7cMp6J2sKUZPNIgB12aS?= =?us-ascii?Q?jPV9lk9NykHsieaqTys/n+IWxnR0KyrFVFtru+mRbMTcIVEdaOrdqmPBndRA?= =?us-ascii?Q?VQUHkWbBv6x+DDrd/TvQ5qqvBvZEgWDYQwYQp32vH+a4CwVOlnX3njaST2F2?= =?us-ascii?Q?IEUsdknSEw0QqDpudfAIO3n59Ix3lWwn4XVbAc0+5VjvtpRv7bMozCME+wLf?= =?us-ascii?Q?56mdw0CYbqczeInM+xqX0XeZ1BjBGuAszb0UqJ0gxjLt+PGU6vavjIwJDhRg?= =?us-ascii?Q?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-CrossTenant-OriginalArrivalTime: 13 Mar 2018 13:52:19.9140 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d137c3e8-68f2-4b9a-b0d9-08d588e9a4f3 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR04MB0747 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a README file describing the driver architecture, components and interfaces. Signed-off-by: Razvan Stefanescu --- Changelog: v2: - no changes v3: - no changes v4: - no changes v5: - no changes drivers/staging/fsl-dpaa2/ethsw/README | 106 +++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 drivers/staging/fsl-dpaa2/ethsw/README diff --git a/drivers/staging/fsl-dpaa2/ethsw/README b/drivers/staging/fsl-dpaa2/ethsw/README new file mode 100644 index 0000000..f6fc07f --- /dev/null +++ b/drivers/staging/fsl-dpaa2/ethsw/README @@ -0,0 +1,106 @@ +DPAA2 Ethernet Switch driver +============================ + +This file provides documentation for the DPAA2 Ethernet Switch driver + + +Contents +======== + Supported Platforms + Architecture Overview + Creating an Ethernet Switch + Features + + + Supported Platforms +=================== +This driver provides networking support for Freescale LS2085A, LS2088A +DPAA2 SoCs. + + +Architecture Overview +===================== +The Ethernet Switch in the DPAA2 architecture consists of several hardware +resources that provide the functionality. These are allocated and +configured via the Management Complex (MC) portals. MC abstracts most of +these resources as DPAA2 objects and exposes ABIs through which they can +be configured and controlled. + +For a more detailed description of the DPAA2 architecture and its object +abstractions see: + drivers/staging/fsl-mc/README.txt + +The Ethernet Switch is built on top of a Datapath Switch (DPSW) object. + +Configuration interface: + + --------------------- + | DPAA2 Switch driver | + --------------------- + . + . + ---------- + | DPSW API | + ---------- + . software + ================= . ============== + . hardware + --------------------- + | MC hardware portals | + --------------------- + . + . + ------ + | DPSW | + ------ + +Driver uses the switch device driver model and exposes each switch port as +a network interface, which can be included in a bridge. Traffic switched +between ports is offloaded into the hardware. Exposed network interfaces +are not used for I/O, they are used just for configuration. This +limitation is going to be addressed in the future. + +The DPSW can have ports connected to DPNIs or to PHYs via DPMACs. + + + [ethA] [ethB] [ethC] [ethD] [ethE] [ethF] + : : : : : : + : : : : : : +[eth drv] [eth drv] [ ethsw drv ] + : : : : : : kernel +======================================================================== + : : : : : : hardware + [DPNI] [DPNI] [============= DPSW =================] + | | | | | | + | ---------- | [DPMAC] [DPMAC] + ------------------------------- | | + | | + [PHY] [PHY] + +For a more detailed description of the Ethernet switch device driver model +see: + Documentation/networking/switchdev.txt + +Creating an Ethernet Switch +=========================== +A device is created for the switch objects probed on the MC bus. Each DPSW +has a number of properties which determine the configuration options and +associated hardware resources. + +A DPSW object (and the other DPAA2 objects needed for a DPAA2 switch) can +be added to a container on the MC bus in one of two ways: statically, +through a Datapath Layout Binary file (DPL) that is parsed by MC at boot +time; or created dynamically at runtime, via the DPAA2 objects APIs. + +Features +======== +Driver configures DPSW to perform hardware switching offload of +unicast/multicast/broadcast (VLAN tagged or untagged) traffic between its +ports. + +It allows configuration of hardware learning, flooding, multicast groups, +port VLAN configuration and STP state. + +Static entries can be added/removed from the FDB. + +Hardware statistics for each port are provided through ethtool -S option. -- 1.9.1