ixgbe: fix disabling hide VLAN on VF reset
authorPaul Greenwalt <paul.greenwalt@intel.com>
Thu, 8 Mar 2018 12:26:08 +0000 (07:26 -0500)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 12 Mar 2018 19:54:59 +0000 (12:54 -0700)
If port VLAN is enabled, set PFQDE.HIDE_VLAN during VF reset.

Setting only PFQDE.PFQDE during VF reset was clearing PFQDE.HIDE_VLAN.

Signed-off-by: Paul Greenwalt <paul.greenwalt@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c

index 27a70a52f3c9d9ee82b1f1e114eab4a3faa11e3c..008aa073a679d27f3d907015c68acb8fd824fe65 100644 (file)
@@ -831,7 +831,11 @@ static int ixgbe_vf_reset_msg(struct ixgbe_adapter *adapter, u32 vf)
        IXGBE_WRITE_REG(hw, IXGBE_VFTE(reg_offset), reg);
 
        /* force drop enable for all VF Rx queues */
-       ixgbe_write_qde(adapter, vf, IXGBE_QDE_ENABLE);
+       reg = IXGBE_QDE_ENABLE;
+       if (adapter->vfinfo[vf].pf_vlan)
+               reg |= IXGBE_QDE_HIDE_VLAN;
+
+       ixgbe_write_qde(adapter, vf, reg);
 
        /* enable receive for vf */
        reg = IXGBE_READ_REG(hw, IXGBE_VFRE(reg_offset));