diff options
author | Ioana Ciornei <ioana.ciornei@nxp.com> | 2021-03-30 17:54:18 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-30 17:18:26 -0700 |
commit | 1a64ed129cce958921bebbde0842d9a0ba0205ba (patch) | |
tree | 28fce738d9b6ce2662bb7e1b3dec4de08722f5a4 /drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.h | |
parent | 62734c7405b749a760c88c3e33d250c9efde263e (diff) | |
download | lwn-1a64ed129cce958921bebbde0842d9a0ba0205ba.tar.gz lwn-1a64ed129cce958921bebbde0842d9a0ba0205ba.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.h')
-rw-r--r-- | drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.h b/drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.h index 35990761ce8f..0ae1d27c811e 100644 --- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.h +++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-switch.h @@ -80,6 +80,7 @@ (DPAA2_SWITCH_TX_DATA_OFFSET + DPAA2_SWITCH_TX_BUF_ALIGN) #define DPAA2_ETHSW_PORT_MAX_ACL_ENTRIES 16 +#define DPAA2_ETHSW_PORT_ACL_CMD_BUF_SIZE 256 extern const struct ethtool_ops dpaa2_switch_port_ethtool_ops; @@ -118,6 +119,7 @@ struct ethsw_port_priv { bool learn_ena; u16 acl_tbl; + u8 acl_num_rules; }; /* Switch data */ |