ixgbe: fix writes to PFQDE
authorEmil Tantilov <emil.s.tantilov@intel.com>
Tue, 23 May 2017 21:02:23 +0000 (14:02 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 13 Jun 2017 23:11:48 +0000 (16:11 -0700)
ixgbe_write_qde() was ignoring the qde parameter which resulted
in PFQDE.HIDE_VLAN not being set for X550.

Signed-off-by: Emil Tantilov <emil.s.tantilov@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 e2766da5fe02681cb666bd0649e12b29d090197c..0760bd7eeb01a4a5a90898645ce80f02f775d338 100644 (file)
@@ -818,7 +818,7 @@ static inline void ixgbe_write_qde(struct ixgbe_adapter *adapter, u32 vf,
                IXGBE_WRITE_FLUSH(hw);
 
                /* indicate to hardware that we want to set drop enable */
-               reg = IXGBE_QDE_WRITE | IXGBE_QDE_ENABLE;
+               reg = IXGBE_QDE_WRITE | qde;
                reg |= i <<  IXGBE_QDE_IDX_SHIFT;
                IXGBE_WRITE_REG(hw, IXGBE_QDE, reg);
        }