drivers: net: cpsw: fix cpsw hung with add vlan using vconfig
authorMugunthan V N <mugunthanvnm@ti.com>
Thu, 15 Jan 2015 09:29:28 +0000 (14:59 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Jan 2015 18:57:07 +0000 (13:57 -0500)
commit9f6bd8fa5860fc7b041b10f2d463c78d65bdb59d
treefc9c939ed65a2f88e5a18f76166d112f457e2daf
parent16dde0d6ac159531a5e03cd3f8bc8a401d9f3fb6
drivers: net: cpsw: fix cpsw hung with add vlan using vconfig

while adding vlan in dual EMAC mode, only specific ports should be
subscribed for the vlan, else it will lead to switching mode and
if both ports connected to same switch cpsw will hung as it creates
a network loop. Fixing this by adding only specific ports in case
of dual EMAC.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c