mlxsw: Add layer 2 discard trap IDs
authorIdo Schimmel <idosch@mellanox.com>
Wed, 21 Aug 2019 07:19:33 +0000 (10:19 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Aug 2019 19:58:39 +0000 (12:58 -0700)
Add the trap IDs used to report layer 2 drops.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/trap.h

index 19202bdb510539a049342f7f53ea2271d4c7a4f5..7618f084cae9b4a4c6b9eb45ec752980e68e549f 100644 (file)
@@ -66,6 +66,13 @@ enum {
        MLXSW_TRAP_ID_NVE_ENCAP_ARP = 0xBD,
        MLXSW_TRAP_ID_ROUTER_ALERT_IPV4 = 0xD6,
        MLXSW_TRAP_ID_ROUTER_ALERT_IPV6 = 0xD7,
+       MLXSW_TRAP_ID_DISCARD_ING_PACKET_SMAC_MC = 0x140,
+       MLXSW_TRAP_ID_DISCARD_ING_SWITCH_VTAG_ALLOW = 0x148,
+       MLXSW_TRAP_ID_DISCARD_ING_SWITCH_VLAN = 0x149,
+       MLXSW_TRAP_ID_DISCARD_ING_SWITCH_STP = 0x14A,
+       MLXSW_TRAP_ID_DISCARD_LOOKUP_SWITCH_UC = 0x150,
+       MLXSW_TRAP_ID_DISCARD_LOOKUP_SWITCH_MC_NULL = 0x151,
+       MLXSW_TRAP_ID_DISCARD_LOOKUP_SWITCH_LB = 0x152,
        MLXSW_TRAP_ID_ACL0 = 0x1C0,
        /* Multicast trap used for routes with trap action */
        MLXSW_TRAP_ID_ACL1 = 0x1C1,