]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: net: cpsw: discard dual emac default vlan configuration
authorMugunthan V N <mugunthanvnm@ti.com>
Thu, 22 Jan 2015 09:49:22 +0000 (15:19 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Jan 2015 00:05:50 +0000 (16:05 -0800)
commitd3291140e8c5a01afb0b38259c3bef8f61530aea
tree447620b70273e9a79168963b4fb778b1dfcb607d
parent8f6124b31bbcb1b4d332432a1e0d953fc92a2ad6
drivers: net: cpsw: discard dual emac default vlan configuration

In Dual EMAC, the default VLANs are used to segregate Rx packets between
the ports, so adding the same default VLAN to the switch will affect the
normal packet transfers. So returning error on addition of dual EMAC
default VLANs.

Even if EMAC 0 default port VLAN is added to EMAC 1, it will lead to
break dual EMAC port separations.

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