mlxsw: spectrum_switchdev: Postpone respin on object deletion
authorPetr Machata <petrm@mellanox.com>
Sat, 2 Jun 2018 18:09:34 +0000 (21:09 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jun 2018 17:27:56 +0000 (13:27 -0400)
VLAN deletion notifications are emitted before the relevant change is
projected to bridge configuration. Thus, like with VLAN addition,
schedule SPAN respin for later.

Fixes: c520bc698647 ("mlxsw: Respin SPAN on switchdev events")
Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_switchdev.c

index 8a15ac49cb5aa61e1961f96c9b28290d8be437c3..e97652c40d13a40fad9bb71e2c554b9d3933bef5 100644 (file)
@@ -1856,7 +1856,7 @@ static int mlxsw_sp_port_obj_del(struct net_device *dev,
                break;
        }
 
-       mlxsw_sp_span_respin(mlxsw_sp_port->mlxsw_sp);
+       mlxsw_sp_span_respin_schedule(mlxsw_sp_port->mlxsw_sp);
 
        return err;
 }