From: Mugunthan V N Date: Wed, 9 Apr 2014 06:04:40 +0000 (+0530) Subject: drivers: net: cpsw: Add default vlan for dual emac case also X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=629c9a8fd0bbdfc6d702526b327470166ec39c6b;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drivers: net: cpsw: Add default vlan for dual emac case also 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 Tested-by: Yegor Yefremov Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 5d5fec6c4eb0..6133e4af9975 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 */