]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit61dbaf9f9730095e8cd0fd8c79640f8086a3b40d
tree8c8b1e894e19619f7aaa36f511545e2d351fc336
parentacacb78a95bbde81619683dbcc1410f323ef0527
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