i40e/i40evf: Only offload VLAN tag if enabled
authorJesse Brandeburg <jesse.brandeburg@intel.com>
Tue, 12 Apr 2016 15:30:49 +0000 (08:30 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 27 Apr 2016 20:05:47 +0000 (13:05 -0700)
commita149f2c323b62bc6cff91d874d853250250e8497
tree4f81fb1a5f10a5ed1f01dbcb20199bfd0ebca861
parentdb0772782f6b99adbd8548e1d3830fe019c9f250
i40e/i40evf: Only offload VLAN tag if enabled

The driver was offloading the VLAN tag into the skb
any time there was a VLAN tag and the hardware stripping was
enabled.  Just check to make sure it's enabled before put_tag.

Change-Id: Ife95290c06edd9a616393b38679923938b382241
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_txrx.c
drivers/net/ethernet/intel/i40evf/i40e_txrx.c