linux/drivers/net/ethernet/intel
Alexander Duyck c49a7bc330 i40e/i40evf: Factor out L4 header and checksum from L3 bits in TSO path
This patch makes it so that the L4 header offsets and such can be ignored
when dealing with the L3 checksum and length update.  This is done making
use of two things.

First we can just use the offset from the L4 header to the start of the
packet to determine the L4 offset, and from that we can then make use of
the data offset to determine the full length of the headers.

As far as adjusting the checksum to remove the length we can simply add the
inverse of the length instead of having to recompute the entire
pseudo-header without the length.  In the case of an IPv6 header this
should be significantly cheaper since we can make use of a value we already
needed instead of having to read the source and destination address out of
the packet.

Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2016-02-18 10:34:05 -08:00
..
e1000 e1000: Elementary checkpatch warnings and checks removed 2015-12-12 23:13:52 -08:00
e1000e e1000e: Fix msi-x interrupt automask 2015-12-14 20:19:47 -08:00
fm10k net: rework setup_tc ndo op to consume general tc operand 2016-02-17 09:47:35 -05:00
i40e i40e/i40evf: Factor out L4 header and checksum from L3 bits in TSO path 2016-02-18 10:34:05 -08:00
i40evf i40e/i40evf: Factor out L4 header and checksum from L3 bits in TSO path 2016-02-18 10:34:05 -08:00
igb igb: Add workaround for VLAN tag stripping on 82576 2016-02-15 16:52:33 -08:00
igbvf igb/igbvf: don't give up 2016-02-15 16:17:57 -08:00
ixgb drivers/net: get rid of unnecessary initializations in .get_drvinfo() 2015-10-16 00:24:10 -07:00
ixgbe ixgbe: fix dates on header of ixgbe_model.h 2016-02-17 21:44:12 -05:00
ixgbevf ixgbevf: minor cleanups for ixgbevf_set_itr() 2015-12-29 19:16:05 -08:00
e100.c e100: Release skb when DMA mapping is failed in e100_xmit_prepare 2015-08-18 14:06:05 -07:00
Kconfig i40e: Kernel dependency update for i40e to support geneve offload 2015-12-16 10:58:56 -05:00
Makefile fm10k: Add skeletal frame for Intel(R) FM10000 Ethernet Switch Host Interface Driver 2014-09-23 03:59:13 -07:00