All of lore.kernel.org
 help / color / mirror / Atom feed
* [net PATCH 1/1] drivers: net: cpsw: Add default vlan for dual emac case also
@ 2014-04-09  6:04 Mugunthan V N
  2014-04-09 13:42 ` Yegor Yefremov
  2014-04-09 18:56 ` David Miller
  0 siblings, 2 replies; 9+ messages in thread
From: Mugunthan V N @ 2014-04-09  6:04 UTC (permalink / raw)
  To: netdev; +Cc: davem, Mugunthan V N

Dual EMAC works with VLAN segregation of the ports, so default vlan needs
to be added in dual EMAC case else default vlan will be tagged for all
egress packets and vlan unaware switches/servers will drop packets
from the EVM.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
---
 drivers/net/ethernet/ti/cpsw.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c
index 5d5fec6..6133e4a 100644
--- a/drivers/net/ethernet/ti/cpsw.c
+++ b/drivers/net/ethernet/ti/cpsw.c
@@ -1201,8 +1201,7 @@ static int cpsw_ndo_open(struct net_device *ndev)
 	for_each_slave(priv, cpsw_slave_open, priv);
 
 	/* Add default VLAN */
-	if (!priv->data.dual_emac)
-		cpsw_add_default_vlan(priv);
+	cpsw_add_default_vlan(priv);
 
 	if (!cpsw_common_res_usage_state(priv)) {
 		/* setup tx dma to fixed prio and zero offset */
-- 
1.9.0

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-05-19  8:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-09  6:04 [net PATCH 1/1] drivers: net: cpsw: Add default vlan for dual emac case also Mugunthan V N
2014-04-09 13:42 ` Yegor Yefremov
2014-04-09 18:56 ` David Miller
2014-04-15 13:46   ` Yegor Yefremov
2014-04-16  5:57     ` Mugunthan V N
2014-04-16 13:58       ` Yegor Yefremov
2014-05-02  8:58         ` Yegor Yefremov
2014-05-05 14:20           ` Mugunthan V N
2014-05-19  8:46             ` Yegor Yefremov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.