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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Nov 2019 17:45:41 +0000 (18:45 +0100)
commitf9a84bbd3ca66e92e99254b626a43ab9ede49d8b
tree7dc746ec8393bbf68bc6ae4dcd2992343380c1e8
parentfe301cf64f7e6ea894bbc5d1ae4555c20d2388d2
i40evf: Don't enable vlan stripping when rx offload is turned on

[ Upstream commit 3bd77e2ae1477d6f87fc3f542c737119d5decf9f ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/i40evf/i40evf_main.c