commit | 3cbc37e6e96b1bbc174dd691a0aa79978ef4b1b6 | [log] [tgz] |
---|---|---|
author | Jiri Pirko <jiri@mellanox.com> | Sun Feb 23 08:31:36 2020 +0100 |
committer | David S. Miller <davem@davemloft.net> | Sun Feb 23 16:06:58 2020 -0800 |
tree | a90dea8e198a52cc6ee5416985767c92ff6317c7 | |
parent | 1255ea6ba2d143cd598b90dd60b3e1fcce8c0337 [diff] |
mlxsw: spectrum_trap: Move policer initialization to mlxsw_sp_trap_init() No need to initialize a single policer multiple times for each group. So move the initialization to be done from mlxsw_sp_trap_init(), making the function much simpler. Also, rename it so it is with sync with spectrum.c policers initialization. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>