]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_trap: Do not initialize dedicated discard policer
authorIdo Schimmel <idosch@mellanox.com>
Mon, 30 Mar 2020 19:38:29 +0000 (22:38 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Mar 2020 00:54:59 +0000 (17:54 -0700)
commit17a67e70cd6a68d336708e13cde086da841a8687
tree7eb8510a4fdc98fce23b1f6127812a630408ce7b
parent97702d7519ceaad37e6be593b07ec92e6e363a14
mlxsw: spectrum_trap: Do not initialize dedicated discard policer

The policer is now initialized as part of the registration with devlink,
so there is no need to initialize it before the registration.

Remove the initialization.

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