]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit621b24265867e526a05b6980f6dc5ac4d8747b46
tree94a493dfd75ee799a97685c2bc0df9b11b102ff7
parentbdaf1fcf552b1c29860c6e75bd52250952dd1ccd
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