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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Feb 2015 06:35:37 +0000 (22:35 -0800)
commit6f80113d0c1a347bef06481a56b6d9c5bb90622f
tree4fdf752291cd86d2e9ad0590c293a7431aab89e9
parentf256de7d38a3a5ca68ab105cf8794fe2ec21e83a
drivers: net: cpsw: discard dual emac default vlan configuration

commit 02a54164c52ed6eca3089a0d402170fbf34d6cf5 upstream.

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: d9ba8f9e6298 (driver: net: ethernet: cpsw: dual emac interface implementation)
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/ti/cpsw.c