dpaa2-switch: trap STP frames to the CPU
authorIoana Ciornei <ioana.ciornei@nxp.com>
Tue, 30 Mar 2021 14:54:18 +0000 (17:54 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Mar 2021 00:18:26 +0000 (17:18 -0700)
commit1a64ed129cce958921bebbde0842d9a0ba0205ba
tree28fce738d9b6ce2662bb7e1b3dec4de08722f5a4
parent62734c7405b749a760c88c3e33d250c9efde263e
dpaa2-switch: trap STP frames to the CPU

Add an ACL entry in each port's ACL table to redirect any frame that
has the destination MAC address equal to the STP dmac to the control
interface.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.c
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.h
drivers/net/ethernet/freescale/dpaa2/dpsw-cmd.h
drivers/net/ethernet/freescale/dpaa2/dpsw.c
drivers/net/ethernet/freescale/dpaa2/dpsw.h