mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
mlxsw: switchx2: Move SwitchX-2 trap groups out of main enum
The number of Spectrum trap groups is not infinite, but two identifiers are occupied by SwitchX-2 specific trap groups. Free these identifiers by moving them out of the main enum. Signed-off-by: Ido Schimmel <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
1 parent
025b7de7f4
commit
03cb0ce0dd
2 files changed
+5
-2
No files matched your search
@@ -5526,8 +5526,6 @@ MLXSW_ITEM32(reg, htgt, type, 0x00, 8, 4);
|
||||
|
||||
enum mlxsw_reg_htgt_trap_group {
|
||||
MLXSW_REG_HTGT_TRAP_GROUP_EMAD,
|
||||
MLXSW_REG_HTGT_TRAP_GROUP_SX2_RX,
|
||||
MLXSW_REG_HTGT_TRAP_GROUP_SX2_CTRL,
|
||||
MLXSW_REG_HTGT_TRAP_GROUP_SP_STP,
|
||||
MLXSW_REG_HTGT_TRAP_GROUP_SP_LACP,
|
||||
MLXSW_REG_HTGT_TRAP_GROUP_SP_LLDP,
|
||||
|
||||
@@ -1404,6 +1404,11 @@ err_port_module_info_get:
|
||||
return err;
|
||||
}
|
||||
|
||||
enum {
|
||||
MLXSW_REG_HTGT_TRAP_GROUP_SX2_RX = 1,
|
||||
MLXSW_REG_HTGT_TRAP_GROUP_SX2_CTRL = 2,
|
||||
};
|
||||
|
||||
#define MLXSW_SX_RXL(_trap_id) \
|
||||
MLXSW_RXL(mlxsw_sx_rx_listener_func, _trap_id, TRAP_TO_CPU, \
|
||||
false, SX2_RX, FORWARD)
|
||||
|
||||
Reference in new issue
Block a user