]> 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)
commit0a4385fd2fb352c2291f08bd0271066dc4060664
tree6ec171a214475a4d6b6711d739dd89fd8c9a4677
parentcadcf6e40c04adc6256c199af79f983975d6c439
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: fefa585 (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