1 DPAA2 Ethernet Switch driver
2 ============================
4 This file provides documentation for the DPAA2 Ethernet Switch driver
11 Creating an Ethernet Switch
17 This driver provides networking support for Freescale LS2085A, LS2088A
23 The Ethernet Switch in the DPAA2 architecture consists of several hardware
24 resources that provide the functionality. These are allocated and
25 configured via the Management Complex (MC) portals. MC abstracts most of
26 these resources as DPAA2 objects and exposes ABIs through which they can
27 be configured and controlled.
29 For a more detailed description of the DPAA2 architecture and its object
31 drivers/staging/fsl-mc/README.txt
33 The Ethernet Switch is built on top of a Datapath Switch (DPSW) object.
35 Configuration interface:
38 | DPAA2 Switch driver |
46 ================= . ==============
49 | MC hardware portals |
57 Driver uses the switch device driver model and exposes each switch port as
58 a network interface, which can be included in a bridge. Traffic switched
59 between ports is offloaded into the hardware. Exposed network interfaces
60 are not used for I/O, they are used just for configuration. This
61 limitation is going to be addressed in the future.
63 The DPSW can have ports connected to DPNIs or to PHYs via DPMACs.
66 [ethA] [ethB] [ethC] [ethD] [ethE] [ethF]
69 [eth drv] [eth drv] [ ethsw drv ]
71 ========================================================================
73 [DPNI] [DPNI] [============= DPSW =================]
75 | ---------- | [DPMAC] [DPMAC]
76 ------------------------------- | |
80 For a more detailed description of the Ethernet switch device driver model
82 Documentation/networking/switchdev.rst
84 Creating an Ethernet Switch
85 ===========================
86 A device is created for the switch objects probed on the MC bus. Each DPSW
87 has a number of properties which determine the configuration options and
88 associated hardware resources.
90 A DPSW object (and the other DPAA2 objects needed for a DPAA2 switch) can
91 be added to a container on the MC bus in one of two ways: statically,
92 through a Datapath Layout Binary file (DPL) that is parsed by MC at boot
93 time; or created dynamically at runtime, via the DPAA2 objects APIs.
97 Driver configures DPSW to perform hardware switching offload of
98 unicast/multicast/broadcast (VLAN tagged or untagged) traffic between its
101 It allows configuration of hardware learning, flooding, multicast groups,
102 port VLAN configuration and STP state.
104 Static entries can be added/removed from the FDB.
106 Hardware statistics for each port are provided through ethtool -S option.