]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_trap: Store all trap group data in one array
authorIdo Schimmel <idosch@mellanox.com>
Sat, 16 May 2020 22:43:07 +0000 (01:43 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 May 2020 23:42:31 +0000 (16:42 -0700)
commit40caf9c921bf439cca2509080b362d2439c2b24f
treee3d91b23beceb4a21fbf1d2fcb47c58b322eff2c
parent61dbaf9f9730095e8cd0fd8c79640f8086a3b40d
mlxsw: spectrum_trap: Store all trap group data in one array

Use one array to store all the information about all the trap groups
instead of hard coding it in code. This will be used in future patches
to disable certain functionality (e.g., policer binding) on a trap group
basis.

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/spectrum_trap.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_trap.h