]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: net: cpsw: fix multicast flush in dual emac mode
authorMugunthan V N <mugunthanvnm@ti.com>
Tue, 13 Jan 2015 12:05:49 +0000 (17:35 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Jan 2015 21:54:23 +0000 (16:54 -0500)
commit9a34b71e044de3749e010bf7159ab723114790c0
tree6ec171a214475a4d6b6711d739dd89fd8c9a4677
parent80ccdfcfeee2c6a8ed028e98d8945c2d7a9c743b
drivers: net: cpsw: fix multicast flush in dual emac mode

Since ALE table is a common resource for both the interfaces in Dual EMAC
mode and while bringing up the second interface in cpsw_ndo_set_rx_mode()
all the multicast entries added by the first interface is flushed out and
only second interface multicast addresses are added. Fixing this by
flushing multicast addresses based on dual EMAC port vlans which will not
affect the other emac port multicast addresses.

Fixes: 9b1d91c (driver: net: ethernet: cpsw: dual emac interface implementation)
Cc: <stable@vger.kernel.org> # v3.9+
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c
drivers/net/ethernet/ti/cpsw_ale.c
drivers/net/ethernet/ti/cpsw_ale.h