Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751503AbdISJCI (ORCPT ); Tue, 19 Sep 2017 05:02:08 -0400 Received: from mail-dm3nam03on0083.outbound.protection.outlook.com ([104.47.41.83]:16464 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751411AbdISJCA (ORCPT ); Tue, 19 Sep 2017 05:02:00 -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 5/6] staging: fsl-dpaa2/ethsw: Add README Date: Tue, 19 Sep 2017 12:01:37 +0300 Message-ID: <1505811698-7338-6-git-send-email-razvan.stefanescu@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505811698-7338-1-git-send-email-razvan.stefanescu@nxp.com> References: <1505811698-7338-1-git-send-email-razvan.stefanescu@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131502853179143511;(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)(39860400002)(376002)(346002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(2351001)(305945005)(356003)(76176999)(50986999)(498600001)(50226002)(8656003)(33646002)(2906002)(105606002)(189998001)(86362001)(85426001)(50466002)(316002)(5660300001)(81156014)(77096006)(48376002)(7416002)(8676002)(81166006)(6916009)(106466001)(2950100002)(6666003)(8936002)(104016004)(39060400002)(53936002)(36756003)(47776003)(54906002)(68736007)(97736004)(4326008)(5003940100001)(16586007);DIR:OUT;SFP:1101;SCL:1;SRVR:CO2PR03MB2359;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD033;1:FKBtuDgkJxoRazZQ4fe8BlGOyDJ/VZaYKfipcLDpfZh2PHUcvFX+Y8hnP+FcGVgt+2sLjzPCjao70kqDOQ4Xxf73qnNyqZ8D8g8Wc0z+fyvQLISywK/7WlylJLJQOG+I MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fed18926-04f7-4244-cbb0-08d4ff3d1517 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:CO2PR03MB2359; X-Microsoft-Exchange-Diagnostics: 1;CO2PR03MB2359;3:1GnO6fWcrmzECDPHuaRWoaNau/SP0Jhx8oTmRQuRHnufT+cg3X+BTYaeiOdezQpCx8sptl5OgwZduegotXc1mEl9Xc5dzvr7zHgtacpVM29WIle7TOak2MAwTqcbisurKCLbiMn7qESD/76RJlr04fqXgTMZSkPhKSLE32k96kKS4ZEqJ0a+nC1/tDlmTYLFvL78ILk9mGhh9Iw9VVLEtDsEcy3DPx5vMIkxm7R9yQSSOst6fia5LQRxHKHSjv/YbgnXG91X5Q47gdSznuJ5HwBMiG374DpVQ8JZn1Z8IIL6EkCmGCm67zrn9luBk7KHKAj0prgEDYo31P2of6kjry5/YTGlVTCXQZMGebH03AE=;25:mHYzj6YYRkOSFQl93F9stvxw+aCDLB6pD28ceOx/2uE/zOvqdb9RwKBpQJFGfozqJmQf5p6i9mP/sIYla2OUJynv5kdGLex5//YeMGJjqBFYQugzrD6HU7DuAtwofaAGr1Fc9ml+Y/Sng8NxBLVoG66trGl6v70SSxg3ytX8grLa/pOmRYWCBXlaQJiC12ADl2a26gupchc4l/Gb2kXPZCtAxpqunEOpYS1QofMLs3fuq/RNuNup1Nmntt8lFgDowXbonPhe9qaBtU9UPPLZPKegthkxxLEsTHsMag1DxSe6YTuI7Xod81/YjBVnHlsHJ/aUaU2Vu2BEw+83Pu2UXw== X-MS-TrafficTypeDiagnostic: CO2PR03MB2359: X-Microsoft-Exchange-Diagnostics: 1;CO2PR03MB2359;31:SqzEUD4gMiInTp3QLLFduUtb67l1VY4WAlj2s0JEO+wlv0qrXW2jho6cdoR1IDDXaT02IsnCreyHrBWGI5RXIRVi8Di8MCQ7KCRakJKDyvddLAafkbkkkOg+HXxxvMoy9G+FsKfATgNlHzHjEsfnGzJm+2kuWRHf/q0IDMpUwUDhwuNmNAFeedVyl1wtsbxLa+mCZBuT6cKAeHYPdx6JheEumr9uidvfU3DMIk/XdZk=;4:TusJdSsGEvXVJHyqB/OKNommRyscLyCKyui7cbqPkzaWGKuSeQf2zQLrxUCq6+Rh3oVWpRurS1M6t5/saAw/242VNeMLfw+3X7K7wA3g81+vbjL6Vlg0MUpWNsrAde1dEboHOEd6kKmiOCGLatuVpHhvlK8FKT4jXr0JfT7qaH3CP7dOFVc5tvK8Uv1nWaPVvSW6kODcd49xGhPT0q9BhED2QoH4vxJF3obem6bHxyrKG+KM5w7Urn+8ym+K9nBUn68QGNDoZrWaKFZYDG/7YJqnPmQgzSIM/xTujCoedVgwn5wcDjmRoY0Wt4rkpUZGKeH7RIm+rgjIOCadTz6mCw== X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(227817650892897); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6096035)(20161123556025)(20161123563025)(20161123559100)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123565025)(20161123561025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CO2PR03MB2359;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CO2PR03MB2359; X-Forefront-PRVS: 04359FAD81 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CO2PR03MB2359;23:+S91WOcnkE01OEzWOXH9UYUmm5UBjcXDmEoY3BcOX?= =?us-ascii?Q?swyiCGGaajn/SllfUVphUHzanfxPEEUlrTM2CH2eZKL7UQbcoDNdO24yt6ug?= =?us-ascii?Q?FoURKjGLay7g0pKmZHh8x/fvJWb7LEu0CG/GD1+GtYjMkruDaazizJat7utH?= =?us-ascii?Q?yyL0uQ7OiqQNigi1SaaLr/Sgln7DsHqssx66EYT8WV3wPcURPvI+cVeTYtII?= =?us-ascii?Q?UUFRWntLn5Fkz+ARlJcE6zXPkzTmcVf8hGt36ZYNpv1EJH5Q0H5/6pb3wUo3?= =?us-ascii?Q?3tqyl9LEbm1Qmri3BCuyqk9mfNNspzQmJmz4FXMYR0vD+C7xfXCIgRBMesou?= =?us-ascii?Q?3mLNfq5ePfweJpUEZ50vEJUZnhuKdIqyVVeAEvGv02W7oXbe3ntQQiMmWLEs?= =?us-ascii?Q?v3vuYpp/T5oVaRqyzAXXD/Xizzg7s/13ILlsDiYTMECqIUahI1N5VMUDOf7k?= =?us-ascii?Q?VDqqXs+nnruciI2dgH5la2TOMqEE7IJTnBk6qHQeiWlP/hmV85nMjOA+KaFv?= =?us-ascii?Q?GU5MprrXfTQFjX/TeIPBA7dbkyAd/iA7PfxWp23OUcjL+xIW3c4O9/4ytpdS?= =?us-ascii?Q?FkK4YFEtot00k6IKGO8pCKCNTl9KdUDv6UzpKeo9XBTilJO+or0mf8yDsx/F?= =?us-ascii?Q?ohF8IHvE8ChvJIMjCC6jWM74CALBF9KTz7TqvhJqxAVK/Q7X2AZZLU2x+LuC?= =?us-ascii?Q?oe/fBadPKo/vSSMlcofiNKdHjuhUsl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CYGv0oUJtm285OSPuOHEbYxa71qW8ZQ8HH8HIgDmxTO/6rqLTOwUbRqXlfCoaEw==;24:kZTvpMqdqBRT9fF8/8KqUQQd26vmBGMjiAzncpXqWY+Yzw4FPuJbT4gRC+tBgS+clvtVXK/IaM4rj7XPlF0GM1N1c/i1bJ7W4+rnmce8q5w=;7:NFbIFwOhehZMRKFxYbRe2KK+YnHy0U/MTyWrTs92es4GKhMHkhe6qJx6vzHexI3zP2GXpdvr5B85SagHZ6PdkVeJld2k8UuKH6dZ0/wce04XoqxZenLumrrZq8VQC12CQrmRmyUFyvSiGw6cn/bj2JLszBtYl2CTe3fBDfMpf3W4XZEP/JcIKhzQyc/uOD4tPK/PpJB6VentUDsJexAbu+kbAXnL6KxR8gnuSrVTX8U= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Sep 2017 09:01:57.6179 (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: CO2PR03MB2359 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4445 Lines: 123 Add a README file describing the driver architecture, components and interfaces. Signed-off-by: Razvan Stefanescu --- 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