i40evf: Allow turning off offloads when the VF has VLAN set
authorPaweł Jabłoński <pawel.jablonski@intel.com>
Wed, 27 Dec 2017 12:32:32 +0000 (07:32 -0500)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 26 Jan 2018 21:23:04 +0000 (13:23 -0800)
commite0f60a815cb3505c37620048568553f82ee159ba
treeff8f08f68942b4fc58491612555d3c734c6727cb
parentca6e1d0abe863ac24c437ea407be84acd8aa373b
i40evf: Allow turning off offloads when the VF has VLAN set

This patch adds back the capability to turn off offloads when VF has
VLAN set. The commit 0a3b4f702fb1 ("i40evf: enable support for VF VLAN
tag stripping control") adds the i40evf_set_features function and
changes the 'turn off' flow for offloads. This patch adds that
capability back by moving checking the VLAN option for VF to the
next statement.

Signed-off-by: Paweł Jabłoński <pawel.jablonski@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