mlxsw: spectrum_trap: Store all trap policer data in one array
authorIdo Schimmel <idosch@mellanox.com>
Sat, 16 May 2020 22:43:06 +0000 (01:43 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 16 May 2020 23:42:31 +0000 (16:42 -0700)
commitcc678f4dbc576f75e0465b21a18f8460858b07b7
tree8c8b1e894e19619f7aaa36f511545e2d351fc336
parent85d4ec592510520a2beb11c7f35748fd09ffe089
mlxsw: spectrum_trap: Store all trap policer data in one array

Instead of maintaining an array of policers and a linked list, only
maintain an array.

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