mlxsw: spectrum: Convert callers to use new mirroring API
authorIdo Schimmel <idosch@mellanox.com>
Thu, 20 Feb 2020 07:07:51 +0000 (09:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Feb 2020 18:04:34 +0000 (10:04 -0800)
commit622110f24b453ab7542c51a0c7a4c799d252b0aa
tree94a493dfd75ee799a97685c2bc0df9b11b102ff7
parenta8e7e6e7c3d60d893271a6761d4342ebb3a72f69
mlxsw: spectrum: Convert callers to use new mirroring API

Previous patch added a work item in the mirroring code that will take
care of updating the active mirroring agents in response to different
events.

Change the mirroring agents update function - mlxsw_sp_span_respin() -
to invoke this work item when called.

Therefore there is no need for callers to schedule a work item
themselves.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c