]> asedeno.scripts.mit.edu Git - linux.git/commit
i40evf: Don't enable vlan stripping when rx offload is turned on
authorPatryk Małek <patryk.malek@intel.com>
Tue, 28 Aug 2018 17:16:02 +0000 (10:16 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 30 Aug 2018 20:53:04 +0000 (13:53 -0700)
commit3bd77e2ae1477d6f87fc3f542c737119d5decf9f
tree95eb1bac1dc429f81127fe7edf09d723c38a1fbb
parente78d9a39fd06109022d11c8ca444cfcec2abb290
i40evf: Don't enable vlan stripping when rx offload is turned on

With current implementation of i40evf_set_features when user sets
any offload via ethtool we set I40EVF_FLAG_AQ_ENABLE_VLAN_STRIPPING
as a required aq which triggers driver to call
i40evf_enable_vlan_stripping. This shouldn't take place.
This patches fixes it by setting the flag only when VLAN offload
is turned on.

Signed-off-by: Patryk Małek <patryk.malek@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40evf/i40evf_main.c