]> git.baikalelectronics.ru Git - kernel.git/commit
i40e/i40evf: Set Ethernet protocol correctly when Tx VLAN offloads are disabled
authorGreg Rose <gregory.v.rose@intel.com>
Tue, 31 Mar 2015 07:45:03 +0000 (00:45 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 3 Apr 2015 10:54:30 +0000 (03:54 -0700)
commit4dee55f1a5233dc56f17bc309a7088192c4d1b5d
tree4cb3f7fe4602ed5499ebd69d7661f49518509573
parentcfb769e4679d6d892505ce32c790997b9b031deb
i40e/i40evf: Set Ethernet protocol correctly when Tx VLAN offloads are disabled

If transmit VLAN HW offloads are disabled then the network stack sends up
an skb with the protocol set to 8021q. In that case to get the correct
checksum offloads we have to reset the skb protocol to the encapsulated
ethertype.

Change-ID: I903d78533de09b1c5d3ec695ee1990dd0fa5dd0d
Signed-off-by: Greg Rose <gregory.v.rose@intel.com>
Tested-by: Jim Young <james.m.young@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