]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mlxsw: switchx2: Move SwitchX-2 trap groups out of main enum
authorIdo Schimmel <idosch@mellanox.com>
Mon, 25 May 2020 23:05:50 +0000 (02:05 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2020 03:33:58 +0000 (20:33 -0700)
commit03cb0ce0ddc8c00b7c4c5becff7fb7cf44b00a91
tree1d00b618507c481d8c491d61e17925a119794c73
parent025b7de7f4e9b26c31c511e84a7cef14605e70ef
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 <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/reg.h
drivers/net/ethernet/mellanox/mlxsw/switchx2.c