Merge branch 'mlxsw-Fixes-in-offloading-of-mirror-to-gretap'
Ido Schimmel says: ==================== mlxsw: Fixes in offloading of mirror-to-gretap Petr says: These two patches fix issues in offloading of mirror-to-gretap when bridge is present in the underlay. In patch #1, reconsideration of SPAN configuration is not done right at the point that SWITCHDEV_OBJ_ID_PORT_VLAN deletion notification is distributed, but is postponed, because the notifications are actually distributed before the relevant change is implemented in the bridge. In patch #2, a problem in configuring VLAN tagging in situations when a VLAN device is on top of an 802.1Q bridge whose egress port is marked as "egress untagged". In that case, mlxsw would neglect to suppress the tagging implicitly assumed after the VLAN device was seen. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
commit
20677108c5
|
@ -191,7 +191,9 @@ mlxsw_sp_span_entry_bridge_8021q(const struct net_device *br_dev,
|
|||
|
||||
if (br_vlan_get_info(edev, vid, &vinfo))
|
||||
return NULL;
|
||||
if (!(vinfo.flags & BRIDGE_VLAN_INFO_UNTAGGED))
|
||||
if (vinfo.flags & BRIDGE_VLAN_INFO_UNTAGGED)
|
||||
*p_vid = 0;
|
||||
else
|
||||
*p_vid = vid;
|
||||
return edev;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue