mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-26 16:39:32 +07:00
mlxsw: Add OVERLAY_SMAC_MC trap
Add a trap for NVE packets that the device decided to drop because their overlay source MAC is multicast. Signed-off-by: Amit Cohen <amitc@mellanox.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c3cae4916e
commit
3aed0722f7
@ -82,6 +82,7 @@ static struct devlink_trap mlxsw_sp_traps_arr[] = {
|
||||
MLXSW_SP_TRAP_DRIVER_DROP(ERIF_DISABLED, L3_DROPS),
|
||||
MLXSW_SP_TRAP_DROP(NON_ROUTABLE, L3_DROPS),
|
||||
MLXSW_SP_TRAP_EXCEPTION(DECAP_ERROR, TUNNEL_DROPS),
|
||||
MLXSW_SP_TRAP_DROP(OVERLAY_SMAC_MC, TUNNEL_DROPS),
|
||||
};
|
||||
|
||||
static struct mlxsw_listener mlxsw_sp_listeners_arr[] = {
|
||||
@ -122,6 +123,7 @@ static struct mlxsw_listener mlxsw_sp_listeners_arr[] = {
|
||||
TRAP_EXCEPTION_TO_CPU),
|
||||
MLXSW_SP_RXL_EXCEPTION(DISCARD_DEC_PKT, TUNNEL_DISCARDS,
|
||||
TRAP_EXCEPTION_TO_CPU),
|
||||
MLXSW_SP_RXL_DISCARD(OVERLAY_SMAC_MC, TUNNEL_DISCARDS),
|
||||
};
|
||||
|
||||
/* Mapping between hardware trap and devlink trap. Multiple hardware traps can
|
||||
@ -161,6 +163,7 @@ static u16 mlxsw_sp_listener_devlink_map[] = {
|
||||
DEVLINK_TRAP_GENERIC_ID_DECAP_ERROR,
|
||||
DEVLINK_TRAP_GENERIC_ID_DECAP_ERROR,
|
||||
DEVLINK_TRAP_GENERIC_ID_DECAP_ERROR,
|
||||
DEVLINK_TRAP_GENERIC_ID_OVERLAY_SMAC_MC,
|
||||
};
|
||||
|
||||
static int mlxsw_sp_rx_listener(struct mlxsw_sp *mlxsw_sp, struct sk_buff *skb,
|
||||
|
@ -94,6 +94,7 @@ enum {
|
||||
MLXSW_TRAP_ID_DISCARD_ROUTER_LPM4 = 0x17B,
|
||||
MLXSW_TRAP_ID_DISCARD_ROUTER_LPM6 = 0x17C,
|
||||
MLXSW_TRAP_ID_DISCARD_DEC_PKT = 0x188,
|
||||
MLXSW_TRAP_ID_DISCARD_OVERLAY_SMAC_MC = 0x190,
|
||||
MLXSW_TRAP_ID_DISCARD_IPV6_MC_DIP_RESERVED_SCOPE = 0x1B0,
|
||||
MLXSW_TRAP_ID_DISCARD_IPV6_MC_DIP_INTERFACE_LOCAL_SCOPE = 0x1B1,
|
||||
MLXSW_TRAP_ID_ACL0 = 0x1C0,
|
||||
|
Loading…
Reference in New Issue
Block a user