OSDN Git Service

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)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Aug 2020 15:49:37 +0000 (08:49 -0700)
commit99d469fc64d06f0c81c0fe2a1c01645a67e0cbf0
tree7aec338555e0b681e7abf7d51c44367add2c30f9
parente104684108fc8b846dbca889f28257a65a956874
net: ethernet: ti: cpsw: 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: 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>
drivers/net/ethernet/ti/cpsw.c