[PATCH 00/12] staging: dpaa2-ethsw: add support for control interface traffic

From: Ioana Ciornei
Date: Tue Nov 05 2019 - 07:35:39 EST


This patch set adds support for Rx/Tx capabilities on switch port interfaces.
Also, control traffic is redirected through ACLs to the CPU in order to
enable proper STP protocol handling.

The control interface is comprised of 3 queues in total: Rx, Rx error and
Tx confirmation. In this patch set we only enable Rx and Tx conf. All
switch ports share the same queues when frames are redirected to the CPU.
Information regarding the ingress switch port is passed through frame
metadata - the flow context field of the descriptor. NAPI instances are
also shared between switch net_devices and are enabled when at least on
one of the switch ports .dev_open() was called and disabled when at least
one switch port is still up.

The new feature is enabled only on MC versions greater than 10.19.0
(which is soon to be released).

Ioana Ciornei (12):
staging: dpaa2-ethsw: get control interface attributes
staging: dpaa2-ethsw: setup buffer pool for control traffic
staging: dpaa2-ethsw: setup RX path rings
staging: dpaa2-ethsw: setup dpio
staging: dpaa2-ethsw: add ACL table at port probe
staging: dpaa2-ethsw: add ACL entry to redirect STP to CPU
staging: dpaa2-ethsw: seed the buffer pool
staging: dpaa2-ethsw: handle Rx path on control interface
staging: dpaa2-ethsw: add .ndo_start_xmit() callback
staging: dpaa2-ethsw: enable the CTRL_IF based on the FW version
staging: dpaa2-ethsw: enable the control interface
staging: dpaa2-ethsw: remove control traffic from TODO file

drivers/staging/fsl-dpaa2/ethsw/TODO | 8 -
drivers/staging/fsl-dpaa2/ethsw/dpsw-cmd.h | 141 ++++-
drivers/staging/fsl-dpaa2/ethsw/dpsw.c | 365 +++++++++++
drivers/staging/fsl-dpaa2/ethsw/dpsw.h | 226 +++++++
drivers/staging/fsl-dpaa2/ethsw/ethsw.c | 964 ++++++++++++++++++++++++++++-
drivers/staging/fsl-dpaa2/ethsw/ethsw.h | 83 +++
6 files changed, 1763 insertions(+), 24 deletions(-)

--
1.9.1