]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ti: cpsw_new: fix clean up of vlan mc entries for host port
authorMurali Karicheri <m-karicheri2@ti.com>
Mon, 24 Aug 2020 15:10:53 +0000 (11:10 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Aug 2020 15:49:37 +0000 (08:49 -0700)
commitd02c2f84bd3ccf7ba1f6d82e2d9e49bc6ce27e4b
tree4099ec272433fa3b4165497ef8e66cea51947514
parente9955e2d72d539007c36c3312238a96878bfd2c9
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: baf8efc03bda ("net: ethernet: ti: introduce cpsw switchdev based driver part 1 - dual-emac")
Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw_new.c