Skip to content

Commit 2c6500e

Browse files
Murali Karicheridavem330
authored andcommitted
net: ethernet: ti: cpsw_new: fix clean up of vlan mc entries for host port
To flush the vid + mc entries from ALE, which is required when a VLAN interface is removed, driver needs to call cpsw_ale_flush_multicast() with ALE_PORT_HOST for port mask as these entries are added only for host port. Without this, these entries remain in the ALE table even after removing the VLAN interface. cpsw_ale_flush_multicast() calls cpsw_ale_flush_mcast which expects a port mask to do the job. Fixes: ed3525e ("net: ethernet: ti: introduce cpsw switchdev based driver part 1 - dual-emac") Signed-off-by: Murali Karicheri <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 99d469f commit 2c6500e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/ti/cpsw_new.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ static int cpsw_ndo_vlan_rx_kill_vid(struct net_device *ndev,
10441044
HOST_PORT_NUM, ALE_VLAN, vid);
10451045
cpsw_ale_del_mcast(cpsw->ale, priv->ndev->broadcast,
10461046
0, ALE_VLAN, vid);
1047-
cpsw_ale_flush_multicast(cpsw->ale, 0, vid);
1047+
cpsw_ale_flush_multicast(cpsw->ale, ALE_PORT_HOST, vid);
10481048
err:
10491049
pm_runtime_put(cpsw->dev);
10501050
return ret;

0 commit comments

Comments
 (0)