Skip to content

Commit

Permalink
drivers: net: cpsw: Add default vlan for dual emac case also
Browse files Browse the repository at this point in the history
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>
Tested-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Mugunthan V N authored and David S. Miller committed Apr 9, 2014
1 parent fa8cdda commit 629c9a8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/ethernet/ti/cpsw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 629c9a8

Please sign in to comment.