]> 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)
commit47d80747e66798363e05c02122ee120bec33a57d
tree7eb8510a4fdc98fce23b1f6127812a630408ce7b
parent6faebc46e09365b2e81ecccb83e2476d61082b1f
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