Received: by 10.213.65.68 with SMTP id h4csp1078248imn; Wed, 14 Mar 2018 08:59:14 -0700 (PDT) X-Google-Smtp-Source: AG47ELuW0TK9o381WZ9SZaAVOuC8Kz71rIxJNR4GNs7taGxoiS6yoYhHFxhDU95yowZCxYfvFYoM X-Received: by 10.98.1.88 with SMTP id 85mr4774413pfb.226.1521043154319; Wed, 14 Mar 2018 08:59:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521043154; cv=none; d=google.com; s=arc-20160816; b=adVV516vIbhP2iVLhzt+eaQ60uq0kXbe1biA7NS3md9QrYvXSxdwCO89eTIYaQ5Lw2 nM8hGLapg4VGLivNF8NNu7/VyWbjzFTyA4m4xOCsg2pYZuenqghvN9MFCiZ3H6SqzvIT h8Tqp6Y4DAE6uZGyHnk3+lOSJIg+WqcjtSE8Ut37M8H1ratHqAoW5Lc1852wzWJ5RUp0 EAGYZy1/evVhtb4luvSbI8LR0rKXqJhiylBHLuEKoTuSvzdXnIwujeZMsVCFzvMNAm2t WK0VjxYp5Hz6ysCbA+aNyD8HjHN6edT9PJ0IwYzpMCJ54/JuZRjHfrFPaxYnuv05KC9n IFUA== 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=MFmdgmqMGO9Av7naVBxdHfjbW/49iFRwuNbNCYnSSD4=; b=VpF4ItWhmLSwGby6iaxZGMIGuH0khIRdDKyD3pZqimBRH1eBi9Y7MJr7kJylBQV9fp Uc726MRoUmYLZ+PPartc04wgOabSYPASfsl6RXuelVH5Zs3BqpPnXT7HBNrbnV5hy2am YLDI6OmtxRELmMFvmhQB+JTzMdaQt7/JgvJfwabs+kgYh5xbykZBn/kM1iQrUoNSpfcg dqVyyRxCPDTB9G0DCYHIELF0dxrFFai4t1tLteQ7SYDG+sdD1syTL07pZn6/MYzwJWsl JvLNTnlTrOT18bW3EaDQCL9OE+uhzzCDiv+hfH4+uLNbE5EnPYq2JRFHZ7Innivw0uOl fDHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=pr6udMrL; 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 g11si2044859pgu.216.2018.03.14.08.58.52; Wed, 14 Mar 2018 08:59:14 -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=pr6udMrL; 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 S1752316AbeCNP5T (ORCPT + 99 others); Wed, 14 Mar 2018 11:57:19 -0400 Received: from mail-db5eur01on0059.outbound.protection.outlook.com ([104.47.2.59]:21184 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752666AbeCNP4h (ORCPT ); Wed, 14 Mar 2018 11:56: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=MFmdgmqMGO9Av7naVBxdHfjbW/49iFRwuNbNCYnSSD4=; b=pr6udMrLuA0fbRT5jD6Iz8gdgzyIHVDWg8hwgfI2vLrJoD2nJW1LrT3nZScs2odnRvS16wR5yI8KU8Ys3rVEDSrSYv3vD7Yj6HCNeSoGXpgPA+ec+Zb9+q7NOFCvBTbCY8z9/koe6G64KYtQX+vDtMMAfnYLDdhj0jDdwWnu+9w= 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; Wed, 14 Mar 2018 15:56:30 +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 v6 5/6] staging: fsl-dpaa2/ethsw: Add README Date: Wed, 14 Mar 2018 10:55:57 -0500 Message-Id: <20180314155558.6898-6-razvan.stefanescu@nxp.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20180314155558.6898-1-razvan.stefanescu@nxp.com> References: <20180314155558.6898-1-razvan.stefanescu@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.88.168.1] X-ClientProxiedBy: MWHPR08CA0047.namprd08.prod.outlook.com (2603:10b6:300:c0::21) 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: 61b41b4d-51e0-422b-25d9-08d589c428e9 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-Di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Su5VR5y5qUkcTlyw8oOr3KCwD/ZTrfwZfqrSBUYYx8rqRckG6apxKgHzWp61WY9eknf6gaewV/9DFKqfFhbknlR7Uf2JCvSveBKM+PES+ZXekyjGD2hf4I2880Rvrsj7PbPUfJqZL87e4XAfPJbCgIobWc2fOA1OwcAvrxnKr6+FbNEGEdZCODbaRkMv6FpcYXdqUpznqG7NkSai/YpMIeGW7cVMd+o1qB9lZYTjNhSDCa3BRFEEdldsHU2e4FgZ/dnSu/rOg90dc75NdPRhUKLe4E+WVBGbV5RVLGlkkYttxMvU6NVPfPcuXj4UWdTsDuLZ05tJvXzH0jkHWoPzcki13lFheRTalrwifxtAivBraj9qcQiPxyUOncJAyOlCxT3sNdlcgekM6IOcQTV3y82KD4QjVn4qUw5uZIpJgaNjsc+;4:9BrZQVr5fsTbyGjJ9+1dS+dohVdY5fx71uf3RcHHGYVB/vSn7eZISTujg6I+VwoakyTb1vRS6yiL7J+fFivV8DS5BbjLU+eTnojzIFdidRFeNIePl8AeSuBTPWjcfkJpKmZirLUoXnntlhAqwF0xTxI+U+0LI9ohM5x0M3+AAiaxLOvAPE+v+bKCHVU9bFOUj46yCcga1YYEn0bWzCSBUSCmhDJ6ZqnLHvnBQEH3F4LafUBhodPxNiJjpOczxkp+3dd9K9aCZPK9yDx+o36zoppOpAkJOTZ5xeZSrsJg09BZ6Wa1TgRnP9sLjO6V/exeWNLxMdNR8+FhFHxHg/QQCvqjFPrzyzJySZrq/3EcABM= 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)(5005006)(8121501046)(3002001)(3231221)(944501244)(52105095)(10201501046)(93006095)(93001095)(6055026)(6041310)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DB3PR04MB0747;BCL:0;PCL:0;RULEID:;SRVR:DB3PR04MB0747; X-Forefront-PRVS: 0611A21987 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(39380400002)(346002)(396003)(366004)(39860400002)(376002)(54534003)(199004)(189003)(6116002)(3846002)(16526019)(386003)(6916009)(186003)(76176011)(48376002)(1076002)(50466002)(478600001)(47776003)(6666003)(5660300001)(2906002)(26005)(305945005)(81156014)(66066001)(7736002)(8676002)(6506007)(81166006)(2950100002)(25786009)(50226002)(52116002)(86362001)(8936002)(316002)(16586007)(39060400002)(6512007)(36756003)(68736007)(6486002)(106356001)(53936002)(51416003)(105586002)(97736004)(2361001)(4326008)(2351001);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR04MB0747;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;DB3PR04MB0747;23:wH0GML3s7Uh9TJNoJP71sghvz566dnhlXeq9qZ2Gs?= =?us-ascii?Q?5U7EpFAAv2cmY4cPQUyS12fumab/LN2GN0xpo54PFcRiVgi0ub9YG4CEkBQ8?= =?us-ascii?Q?5qUSjD71T0YWuhjX6cg59j7HZUxws2uDjmieueLy/SrPWAzDxpyKb5TgXfVG?= =?us-ascii?Q?UWbHHZMZLqlICFP59YgfecrKFzMD+2aY32SvjaQJ0+8hyE2nkCJFjQV7qfh/?= =?us-ascii?Q?78xnSewJi4afAn4CMgJhXjWUfFbVpiKvY3Ep7u+eRs90IcJdw305FW6ctmWw?= =?us-ascii?Q?MtHJn+DVnUBdDpdE2fNfI+MGfo+SoTr9BHy9vXUad1jrRyMFgi973fit6Hty?= =?us-ascii?Q?nOnMC1hEi3TQDrxq922xTgwSoArmoKJgpMFHTYyGUBswpl2St1ZiETW0hcLg?= =?us-ascii?Q?+JhH3JnUQhEHCre0A7zKMuVOV0Ig2lHN1E63bNYkL7c9EK6a8f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osticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2018 15:56:30.4974 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 61b41b4d-51e0-422b-25d9-08d589c428e9 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 v6: - 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