]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: net: cpsw: fix dual EMAC stall when connected to same switch
authorMugunthan V N <mugunthanvnm@ti.com>
Wed, 18 Jun 2014 11:51:48 +0000 (17:21 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Jun 2014 00:17:39 +0000 (17:17 -0700)
commit134ba9a52629b7253492f1cbcbf40bd84230897c
tree5756e77a38941017a8c64b42b846c317b662081a
parentb5ff9c81512b5db011f5c8712c4258f48ec9b0bd
drivers: net: cpsw: fix dual EMAC stall when connected to same switch

In commit 9dc3db66fc2f691a219b3cb054d42d84701f3894 (drivers: net: cpsw: Add
default vlan for dual emac case also), api cpsw_add_default_vlan() also
changes the port vlan which is required to seperate the ports which results
in the following behavior

In Dual EMAC mode, when both the Etnernet connected is connected to same
switch, it creates a loop in the switch and when a broadcast packet is
received it is forwarded to the other port which stalls the whole switch
and needs a reset/power cycle to the switch to recover. So intead of using
the api, add only the default VLAN entry in dual EMAC case.

Cc: Yegor Yefremov <yegorslists@googlemail.com>
Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Tested-by: Yegor Yefremov <yegorslists@googlemail.com>
Tested-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c