summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_lib.c
diff options
context:
space:
mode:
authorBrett Creeley <brett.creeley@intel.com>2020-01-22 07:21:27 -0800
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2020-02-15 16:34:02 -0800
commit61c9ce86a6f5c3c2eb1dad89da0c758f586ffc3f (patch)
tree8dbe388955c408ba12c6b10c8468fc17a264bb50 /drivers/net/ethernet/intel/ice/ice_lib.c
parent0b6c6a8bb6d541aad9e0f3bb2307316707aec723 (diff)
downloadlinux-61c9ce86a6f5c3c2eb1dad89da0c758f586ffc3f.tar.bz2
ice: Fix Port VLAN priority bits
Currently when configuring a port VLAN for a VF we are only shifting the QoS bits by 12. This is incorrect. Fix this by getting rid of the ICE specific VLAN defines and use the kernel VLAN defines instead. Also, don't assign a value to vlanprio until the VLAN ID and QoS parameters have been validated. Also, there are many places we do (le16_to_cpu(vsi->info.pvid) & VLAN_VID_MASK). Instead do (vf->port_vlan_info & VLAN_VID_MASK) because we always save what's stored in vsi->info.pvid to vf->port_vlan_info in the CPU's endianness. Signed-off-by: Brett Creeley <brett.creeley@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_lib.c')
0 files changed, 0 insertions, 0 deletions