From: Jitendra Kalsaria Date: Mon, 14 Apr 2014 14:02:21 +0000 (-0400) Subject: qlcnic: Fix PVID configuration on eSwitch port. X-Git-Tag: v3.15-rc2~39^2~15^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a78b6da89f52d03997619f5a78a5325bec865977;p=platform%2Fkernel%2Flinux-exynos.git qlcnic: Fix PVID configuration on eSwitch port. Clear older PVID before adding a newer PVID to the eSwicth port Signed-off-by: Jitendra Kalsaria Signed-off-by: Shahed Shaikh Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c index a81ad5088b07..c1e11f5715b0 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c @@ -1354,6 +1354,7 @@ int qlcnic_config_switch_port(struct qlcnic_adapter *adapter, arg2 &= ~BIT_3; break; case QLCNIC_ADD_VLAN: + arg1 &= ~(0x0ffff << 16); arg1 |= (BIT_2 | BIT_5); arg1 |= (esw_cfg->vlan_id << 16); break;