]> git.baikalelectronics.ru Git - 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)
commit2227548c0e5028d72b0b9a91b550a35bcf195ddd
tree1d00b618507c481d8c491d61e17925a119794c73
parent3d11157f88933178fab017dd6f4f26a65d9b4960
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