ice: Correct setting VLAN pruning
authorBrett Creeley <brett.creeley@intel.com>
Thu, 27 Feb 2020 18:14:59 +0000 (10:14 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 10 Mar 2020 20:10:32 +0000 (13:10 -0700)
commit345be791abd11f24449b77cd2a64d18e29bb9f1b
tree2d9d9755cd5993101712463ce11f8de4e1d27931
parent35e935617e6eed7f2b8e707bd594f04a663aadb7
ice: Correct setting VLAN pruning

VLAN pruning is not always being set correctly due to a previous change
that set Tx antispoof off. ice_vsi_is_vlan_pruning_ena() currently checks
for both Tx antispoof and Rx pruning. The expectation for this function is
to only check Rx pruning so fix the check.

Fixes: cd6d6b83316a ("ice: Fix VF spoofchk")
Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_lib.c