]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita6ffb3161ceb0ebbcc32c1f5a5d4a289e8ff15d5
treefc9c939ed65a2f88e5a18f76166d112f457e2daf
parente48618e3e7a9ffc1b42e772973c2564d3cc30464
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