]> 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)
commita6fbecfbd86f4b57af33ea2c5e0620fa97ef0100
tree1d00b618507c481d8c491d61e17925a119794c73
parent96d45eb8b979acc5a3b4b92a8477ddd773240937
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