]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_trap: Prepare policers for registration with devlink
authorIdo Schimmel <idosch@mellanox.com>
Mon, 30 Mar 2020 19:38:27 +0000 (22:38 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Mar 2020 00:54:59 +0000 (17:54 -0700)
commit7901a58dc9f67676d73f0c0046ac973e2727db46
tree55c09734e5a5b54918999c2cfdec87b5b4eefbd9
parent595014e2c7b4b1b3ebf7c74e2c15b351ec22210b
mlxsw: spectrum_trap: Prepare policers for registration with devlink

Prepare an array of policer IDs to register with devlink and their
associated parameters.

The array is composed from both policers that are currently bound to
exposed trap groups and policers that are not bound to any trap group.

v2:
* Provide max/min rate/burst size when registering policers

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