net: ethernet: ti: cpsw: fix clean up of vlan mc entries for host port
authorMurali Karicheri <m-karicheri2@ti.com>
Mon, 24 Aug 2020 15:10:52 +0000 (11:10 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Sep 2020 17:14:16 +0000 (19:14 +0200)
commit634b47d46f936d88de5ad0929467a5edfc8f7837
treec8ce40bb2ee1fbdedf03b5be1f34f0adebde5862
parente4fe6bfddafe0535ef8d78deddb86866d865da3d
net: ethernet: ti: cpsw: fix clean up of vlan mc entries for host port

[ Upstream commit 99d469fc64d06f0c81c0fe2a1c01645a67e0cbf0 ]

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: 15180eca569b ("net: ethernet: ti: cpsw: fix vlan mcast")
Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/ti/cpsw.c