Received: by 10.213.65.16 with SMTP id m16csp238088imf; Mon, 12 Mar 2018 01:52:04 -0700 (PDT) X-Google-Smtp-Source: AG47ELt1/h8CLdkMnUmQq+SLzV2JHBuukQhc1rl5pbyPHpiNtL0Fw6Ahn+5DrD72KqvrmpcZisKp X-Received: by 10.98.86.151 with SMTP id h23mr7222482pfj.79.1520844724704; Mon, 12 Mar 2018 01:52:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520844724; cv=none; d=google.com; s=arc-20160816; b=xevKYI3ClmpaubMr/46+IXjXFIYFi0t3qMJfoZ19Xkaz8lnsrs3nRUiTorJPOMjYc1 98Sw2ifCjIKZQaoafOtfYPtga2T7bsQgKqxlbcDxILjd6XkQxRsFrpG3PT7BL6k0JaNn dpenSAdJT4x7FVuLE1PE0907zyqP2IX2PJzcN58h/QgnB1TxLeaPP0NsRPIQjBw7Ofw/ bltJYI8o9+xTpVPQQR+t2NaYsIsXl8CCqJ8mODtW8ab19Wu9x/lZEX0KdFg11cahWuNM KkjcKbUtOjdz6PHLFHG1fTSyloBVxPAU0K7X/41wkSdrHJq5H3IXbIvBN4uZ7qv6MbhI +Lww== 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=gWkHI5RpgLCTZseOxDB+T/2XgiFoVPfb16j6KK7Qe2E=; b=LGRka5AIPifNVDVFC2/JVFMu4tJXOymNPr8wjl2mrkltbam4SbpFrOMiPhzncuKsdM S5HWJnKEqBm++OWmfdscrjBrooNIsM7hYO8l3/daR/P6kecElBL3rZozi5hppwRDRu+y 6qjB48PpNUR0Y6BocMmlSMOc6UUnORIIXnFiweNELdycoZLY/G4ikq+DSVhTps1clloJ 6hPdNirTJhiTl2SHwcpK3HuELuUarCbhbYOWQeV8d/Sp5zuM9UTkgt0/4RKmIXBKo9Df KLp51YP6ZfhhzjZm4ZYlL8MfhXf7Ea/lg+6q4Yj2LoEpUktHKKj9rcQhsqEPa7FyP+dr cs7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=jEq+NPU4; 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 o12-v6si5630062plg.468.2018.03.12.01.51.50; Mon, 12 Mar 2018 01:52:04 -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=jEq+NPU4; 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 S1752529AbeCLIum (ORCPT + 99 others); Mon, 12 Mar 2018 04:50:42 -0400 Received: from mail-db5eur01on0068.outbound.protection.outlook.com ([104.47.2.68]:2947 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751333AbeCLIue (ORCPT ); Mon, 12 Mar 2018 04:50:34 -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=gWkHI5RpgLCTZseOxDB+T/2XgiFoVPfb16j6KK7Qe2E=; b=jEq+NPU4yf1M42GdYJhPHsZuAH8lEmw3GxB+3AW6D6IsGTOHJvEjtw2wwWtwftt4yr9bXl3m6f86FbYsbBaVc4oek9VGax4C330wi4yOVO68MAuw9Ez61PDltWVQ8cJMZo0Ifn6fRdeANgF5Dtcnj6jZqUVRPqfFW0Yz0Qx52ck= 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:18 +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 5/6] staging: fsl-dpaa2/ethsw: Add README Date: Mon, 12 Mar 2018 03:49:54 -0500 Message-Id: <20180312084955.12686-6-razvan.stefanescu@nxp.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20180312084955.12686-1-razvan.stefanescu@nxp.com> References: <20180312084955.12686-1-razvan.stefanescu@nxp.com> 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: 2c573e49-f286-4fb7-e0e9-08d587f6496f 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:sCVrvnthp/ty+F7FYKZezhvu23FjWtAkqgSYR+ZQFnJKaq3HLJA112aY9J4fbob+hSkppDqWQkZ32dJMXaUTFBoUD04hDmaR2Hgett0CccAXvtOnJ1FF0+iU11ff1oVYliWDlucrfeOkGGQzo+St7ej8Vg5PH66x98LL/E3u9XFHwk2I363YNxJ9P3jt0v9uT+pjWGby/iRAoZRwhEv//uIz1dqI/9bTd4FDx74qde7l7Lhl9AWQF1O/47ovBx2/;25:5ivn5DfZfjTIpt8IJEOF7FKFWC0ilG/aqnAT6+8M3amcuEZxEPONfpnotYB/+8GnyZ+H0QS/J7hgNjJQXaL6fSkwnTj+vUhxIfC7yznbV1X3IkvcikCC//ORRjjfHgaA+iuJ6coDPJWHGXqH2J66J5qV+Flo8bSFsJMsj4crTGMhkAWTE30cRoJFw4cQK1W7Wt4c9F9mlepnl1GHht1qDZCggttTcZwsLpw/iyack9b7f+WtNtF7HOvYQvUjLtgwXLkapCvuYNq0B316SJeQie1iOP3P4WtN8PCAt6KRhyvVPz29PW4M5QurHWAcht2G+hiTsq0aDYIs5KQugcDXZQ==;31:UDWskqZbFczvHLYAWw6f91TDxMrzbmnSMA28wh7lFNu8nRnSABLvchSKDpG325gAk6TzXYj+a2cs+v/9Tsxe/LriIwEgfMFsYo7FSrEWxsDD4AqzB/jkqqz7HWCHtTfi60Q5C2LPsBJMD4QfTWu4Zx0rOuSTNSYMsIatbNve9nKfcnwUiPBq9nkkAgab9xuKv7DoxVs26DePxlRNOuvY/Gib2bKznzi509ixXmDTV+g= X-MS-TrafficTypeDiagnostic: AM3PR04MB0743: X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-Microsoft-Exchange-Diagnostics: 1;AM3PR04MB0743;20:5sXA3Gh81/pw1dVqUPSHX10lsqYL9x3m37JzlG5RljMOneOK3KBAAUU+6hu+ARODrY1QTF6ZBGK+GfKmhZepSB9qgiMCkWyfcFIJMvfKUdqPtZW6b8duY8da08OIE84dL5+MMLxndoAxyoshN3Tgi0CcFER/JPo8msPkiVTfxXHmOwl5yJlbhm04V5q2oymdU4gRpXqB+HwoF1JHsF1nUcYEB6QBxhuq6T9BgmpC8YH9eUu3/3kqvKBP9N9wZv6sJBuKoRAzVRUiEdPPyTWPDvzWkrxEX1xrSP+qPOEs32aXWiDn2ZTM8JYQVyISmLBcQclxgRVTktB9gJs53pYUV5y9EgK7OT9lgmXf0Qw3Dkcf3DrmK8AQRO2YTtRaoP2MYXHwQkUs53BMxX5+ZrxHZ7i6SiJ/iI8O3U7ECFSeuSPmq+pXHUvOC0LTbNqepB3yZZ6sQUHZhMo0JlgeG+dVJRoOKJuWOlyuP3l/EF1AguCtROO98M1OgxbX6Cv6kHh1;4:9r8mjgZ7/UwHcdIAALFEe0KLd9V7ljN1cfrR+cEyFEn4LDExlrIX7imE3nFyOZYbCUlmymOD+qkuFAw+hXvyddSB/FWjunjKLkR2+fphRCsfVedbKOdTm4S/e+WzrtRLmWs9+8fcoRpysGO9vRVeep3KJuOMyDkTrhg+BrlsBsg13RAentYk0Vz//C5Y4XND669LmznMEv26MATdOPwNgIpGPeejs5Qbs1rZLraGbUdf5roNuZUPdojTnN323ANfLz6jo+jwH2X6/GmHxe+eQCSNphy2vL1kADX27/4ZXbffXktHzvVDqtre/p4wTfh9v/SF2qwx7mvc1/b7HcEDrw+SjVGyBbSG3mFFQ278AdU= 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)(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)(76176011)(52116002)(6512007)(36756003)(6486002)(39060400002)(66066001)(51416003)(386003)(6506007)(5660300001)(478600001)(26005)(4326008)(53936002)(48376002)(6116002)(3846002)(16586007)(2950100002)(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:HE2ZJuB56wttRIgd1xEwUcyQGkt+sWtgAeBL1iNSL?= =?us-ascii?Q?fIRucKyy6oEcTm7KhgXQ5vqPhlV8iNZec4PZIZa8wtaby29OpGrWm4qDda42?= =?us-ascii?Q?JvmEUx1NbLlQXrQh0+z0JIWHS1L+S9SXo4g4T6y6MtuUIPssObW0EwzLyXFi?= =?us-ascii?Q?DGMfEbkXjd8T/94NeFke9ZH2uahkKPj4TUV6+3prDtlp8kDBy8wwfrvxbWQO?= =?us-ascii?Q?cdMC/sdWc+A0UlOQjWBmKUSk/8/Lp+JXE6k3QFj3L1/bpoWPZ2Ola1PSEofZ?= =?us-ascii?Q?hyphT06fLRsNx8f57eA0/8yW9JJSH6Bzwk5PAYSzaRyFTRnWpkSNsHD0sm4p?= =?us-ascii?Q?+EshvCQ16YOWT9miU9jd277xUrcA5HFW73dHMDneL4Rx1Kt4oB78VSKsXzUB?= =?us-ascii?Q?//DfpLL7GJo37LqSK+5/dsC44OTEL4fcw6zQm8NH2nKwLqkh/QZ0lvSwvkYM?= =?us-ascii?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1IBqprW75nNq2Nzm9MAWlzy5PIQlRl07CYWMpEUwufOWhFiIfuLtgxD2uErCU5TmOd77fXCC6rP X-Microsoft-Exchange-Diagnostics: 1;AM3PR04MB0743;6:iNrobngxkfQYXe+11655D7cj/tm7Ajxj+pRdOlmmdpvwhBxDmbsEwq/hcatiq8j08HdGe8pYIVFT8ozOIh4I/zRiPPD3kB2Mvd2o3GXJz//6HR9f3Vt3cZ3RWWgIG22EZT7yRps8Un8aoDmGuPqz8Uvv40bMObmus63crPLOQZHlkjgilyX9UHD8DVNXJYDRnhn9FahAeeKVIELKWxJkhttsvRAl60www68dvqtrKKsK01WU4uKf2u0DmOrEIq6uIq+v6OKGVlipRH7LPhgXqVqzvANx45c81+W3EK7yeJ9idWcpM1o5N7/KsPx7HQDY8jiH5hfHSlFQN5qMgCx1zSpfvRtucgFbCvqUW9GYb0o=;5:hsNrZtCTCLx9rMxEFlCgYzWq7IflSFyjELMrKZPRgPaCHnHWkWS4nz34GN1+dsFJ7873rXbM6dzc+A3DeT1aPA9II0yMi7ftzK0s8hkZE6uO0Y0whc3gqlbtEw742TAco9oFlO69d5wiiGyVomPDefihU1oLho4emM8+3CDCkzk=;24:MpD5uHlByO3asvt3W/tdLNxH0Mbbyw/YWjoiKWyG3aS17zdi/555vgoBaIZIVJKynm9psc6n1xs9V/YCvJRy29bY3HMAqF9iDO6iOXoc3YM=;7:tCnGMZMVHP/oWEL8KIDCrADfbnUpOfhzR/z/Tc/WLoMs6uC/n+k1hBiecqrSSbr+7B2qWyKShMG6pRqqwjn6rkXbCd46DRylKQd2+07CDKmI/bBNbyulHHWsNSeuRTnMmACQaUKK3GI2WnhYmX9m+oRxbVOxyOQD/+JHM7/HDxqY1kAstqSOhOFxrTdG50JoNRxGUf5K+ih+7dB7nogNAE322TagpNKcZ1Ds30fQ8StlmaL0SCqvclLaWBMpHj6V SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Mar 2018 08:50:18.4535 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2c573e49-f286-4fb7-e0e9-08d587f6496f 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 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 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