]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitbc82521e3b8e8cfa7e0136080c75a3af3a1b448a
tree7eb8510a4fdc98fce23b1f6127812a630408ce7b
parent13f2e64b94eaf9131472a1102e1ee25b32e86fed
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