Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751263AbdISMrM (ORCPT ); Tue, 19 Sep 2017 08:47:12 -0400 Received: from mail-co1nam03on0050.outbound.protection.outlook.com ([104.47.40.50]:2929 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751965AbdISMqT (ORCPT ); Tue, 19 Sep 2017 08:46:19 -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 5/6] staging: fsl-dpaa2/ethsw: Add README Date: Tue, 19 Sep 2017 15:45:57 +0300 Message-ID: <1505825158-8192-6-git-send-email-razvan.stefanescu@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505825158-8192-1-git-send-email-razvan.stefanescu@nxp.com> References: <1505825158-8192-1-git-send-email-razvan.stefanescu@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131502987773262273;(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)(376002)(346002)(39860400002)(39380400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(104016004)(76176999)(50986999)(85426001)(189998001)(77096006)(5003940100001)(8676002)(81156014)(8936002)(81166006)(50226002)(356003)(97736004)(8656003)(305945005)(68736007)(2906002)(105606002)(36756003)(50466002)(2351001)(316002)(33646002)(16586007)(106466001)(48376002)(47776003)(498600001)(4326008)(6916009)(54906002)(53936002)(39060400002)(7416002)(5660300001)(6666003)(2950100002)(86362001)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:BN3PR03MB2355;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD037;1:dkngHsCKha6OVuuQde2aY/1+evs6Y6jJ9hEFdvMCChblEFeBSxgSovZMZDPxmRlDduxeVPhLhX3wbGO+Uhko0kH3zWUGQc+z1Oh/vMrDxg+q+T+K79nXRIqd2F+WUB18 MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 85852e46-02a4-4575-aeb9-08d4ff5c6b84 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:BN3PR03MB2355; X-Microsoft-Exchange-Diagnostics: 1;BN3PR03MB2355;3:S7YxQc1+nQN7VE+Fy7zmq0w7+Ya+5DZ25oAb+MLodbkGe504DsroPwPN0dw83X2PhwrgZ+e1Ki4VmbVwGTt4eGx0Px5y9v8GOkz88aC5W+y7IUoPIjBSmqub+NX+pw+8yp+x4BXwzd6EHUu1JG1p+uWEYfl21Wij4JQXaAgwpT+9H4nrkRIzDJVgspF+fJevPSwLLaP9yHybb4jUJcWFj1kJZJsGCWIinRNorvE50HDGn4hRTnKnu7GU0e8xP/S/JSKpBYsZGtjuHeoVxisdbVtqpt/1xbnKyPrnoLtOmosu7eC41QDrQhTtmD6LOKKjKwv8O/GLbPAVlxls3r9nNDk1nlUq5YkMBTDH/ztyoco=;25:+km1ZmBf34GpShBVDdlrbevyTjA3+x/xS29ydC+zOFwfUepbX3tDtpB5SSsSvGTsHc+MF/3EMWwUjqc4VxSlXPev8bUOKOoe3HIxhcySaA/iqYO7KOBRIypt16mnOuZVAMDPQZK83kl9y5Cs1dsg/atnHlIw/N6rtOwnlrxR/7TTfrhV5FmGb4iOhcC/kX/4mhbzTh2gfAmkCOM7dIxJzcU08i8vyWtqW5cLkLeQW/+Ek9A+C+hlePpwaEQPXZYXEHaV67Ov1ZNHFnHQE6rQV51vWWYwWxITsDaF6yfVGxGj3RJ9gbCyaIfaGJa7HwtvoBXHEoKuW/YPONJtJKEsZQ== X-MS-TrafficTypeDiagnostic: BN3PR03MB2355: X-Microsoft-Exchange-Diagnostics: 1;BN3PR03MB2355;31:Krt5jk36XinAFtarcVmEe9K+s5TXM7WeQMGGMNrrd+y3rXaecaXhOFG64HRgVTgp0y73LXLJXOlLkQZLqZuCwup4XplaLcpE6PopmGwbdogzfOG9Qp3Qsa+ZUwda6ZAvmTP/EaxClwO/I06s8WijbsQVj9Ve3eVbPQae060HNfUl/4kL1O067zJQbpw8UD0jjp4G4hfpFgKfLNWsY64qjAoyTMvYFGfc/x4zeWuPwd8=;4:YFCodvJD43n2vvf7k53FukSwelIY44/u95ERB3XqGOxOx1Flbod0ZFGA1OTjfdtddBvIczkXAn7h/wuyGw1sFHuz3qEABhwX4MJ8Z768dKU5OBuyZ3uU5vkDCKY6lLYEWPgzaIRzvXaeQpDIm1NPfBEA2z41HD8CqTRKxq827Irw2xM2vIaflMMXYPyPuxTffQFYTCc42STs2t9+nOPrR3+kTBVpmMtg0Oyol0dmG51Edq+uA+IRe7qXXe+JZcBFo8x13/XtJYgOgeS23lBmMIezIDBN47qB2b95SohcVxYgwaXFzuBAJbbUBFBgiPOG2zBB5CtHKZ68iRDlHJLu8w== 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)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(6055026)(6096035)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123561025)(20161123563025)(20161123556025)(20161123565025)(20161123559100)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BN3PR03MB2355;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BN3PR03MB2355; X-Forefront-PRVS: 04359FAD81 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN3PR03MB2355;23:rp58YhX0LzIzJ4z2aZFonxFIaGoCi+wdb8MBd12mC?= =?us-ascii?Q?J4xTrhPZ7OTn5R+UG8OopK1amPq5NFoxdCukKcD1VE6q3JeaRQJZxdJSdyA/?= =?us-ascii?Q?M+J0BNJZpFhPHeXlSif/pIFNwQe/5kuBPnAf6MXJq/Ho50fFZfoB/1U7IOrm?= =?us-ascii?Q?XI3pcy7uzYyHj8SOiGVBORax43xf+sQAvt7feYtUjdE8JcbUC6W53I/w0e1J?= =?us-ascii?Q?ETGKCHB2s331rZpiZ+b5jCgrkwpmPRHu66K86Dt4dwF6mqtRwGb0x6VAvCAw?= =?us-ascii?Q?RHsG2MYu9c3TZU/eNZdzl0jyx3Oq2tV02DfXhHQSG1urTExjpEMlFOTlXc/v?= =?us-ascii?Q?WXAHYEgYjESJNFUtQfqQxHZLauqMz7OAOUZSdyOQVcyPdIQu31t0bTxkXtjD?= =?us-ascii?Q?QQwflR+UgAfWbumPSu+AJCj090mE11oRI1ReD+ln1F4CMImM+gDAVaTh+kBD?= =?us-ascii?Q?jwpotSFnX2ZtQgLRbC+gA+N7uhkJ+KAknRUsUcI/5I3O6v9IFjJb89+PlFBs?= =?us-ascii?Q?gjlbIzdLnvVdUcrU3+2eBsdaAXGlxOq+5rEhqYaggGJHmayE6NLUH+Xaf1bi?= =?us-ascii?Q?AdaOEcn/MXkeA35hhOrtLpaUN95nkonIzHBonBSGsC9JdsjRW8ua/OyQdarI?= =?us-ascii?Q?Mesmzafu6J0S211Bf6D3fzTmoh4KVnefek0CaZDerLxmOyFYSIuoXsF+d6rs?= =?us-ascii?Q?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lIg==;5:rz6h2A3vOjpwIGMIwcA4SEcxy/GXMVxv0NDzYbiDJQmicPLbveFIGZKxw8uVaeZnTzN/7TYMJQx1C3S3nypI+YSYNdkHXCuwVIMCKP+K8cVhFSVNDxcFE2zu8UOksIpReErYllDwMEQ8ce8WMtPWig==;24:1sPvotbWEw3yeEpSByGLipcKHgL/WbixvCgyhBl1mudZZxgCLRGrpxVpmSL45X4TJlHqs9KL/YS77a3OzhGPyAVVHoaa2uDeenZDGg7XneA=;7:U5V0Erg63449lE5QiOV7bO+bxAYtetJn/io03qbDZkzRQHD2XKwedKOemx3nW4MHDaf6fYrWG1q387X8H2PQ+C/qAklfRY+k+HmcgOR+6C5hM8Mp5YBMBE6mTogUWITtsd+6fSoDIdDNitnHxEIAVjtvA+kP6/amJ0SQwwNFhnZFMixYiOJX26tKhhtfB1vzicoBSA2HULr6ZUZXoWYoR5CC2Dv+HqTBfWw2qOt7YMc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Sep 2017 12:46:17.0298 (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: BN3PR03MB2355 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