summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/intel/ixgbevf
diff options
context:
space:
mode:
authorAlexander Duyck <aduyck@mirantis.com>2016-01-13 07:31:11 -0800
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2016-04-04 17:39:05 -0700
commit49763de0425560eed50a186428010189eae69372 (patch)
tree2d42d3f263695e4d5857962534e6caa22ea1e8cc /drivers/net/ethernet/intel/ixgbevf
parentc7374b5a767cb6c7d9acbfc82656dc89afeae257 (diff)
ixgbe: Add support for generic Tx checksums
This patch adds support for generic Tx checksums to the ixgbe driver. It turns out this is actually pretty easy after going over the datasheet as we were doing a number of steps we didn't need to. In order to perform a Tx checksum for an L4 header we need to fill in the following fields in the Tx descriptor: MACLEN (maximum of 127), retrieved from: skb_network_offset() IPLEN (maximum of 511), retrieved from: skb_checksum_start_offset() - skb_network_offset() TUCMD.L4T indicates offset and if checksum or crc32c, based on: skb->csum_offset The added advantage to doing this is that we can support inner checksum offloads for tunnels and MPLS while still being able to transparently insert VLAN tags. I also took the opportunity to clean-up many of the feature flag configuration bits to make them a bit more consistent between drivers. 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>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbevf')
0 files changed, 0 insertions, 0 deletions