diff options
author | Alexander Duyck <aduyck@mirantis.com> | 2016-01-13 07:31:23 -0800 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2016-02-24 15:32:42 -0800 |
commit | 6e033700887bf29d4e59f6978a02d989787be620 (patch) | |
tree | 1cf2de8c1d2f7aea480926d4a7239f8dd4c1023d /fs/block_dev.c | |
parent | c883de9fd787b6f49bf825f3de3601aeb78a7114 (diff) | |
download | blackbird-op-linux-6e033700887bf29d4e59f6978a02d989787be620.tar.gz blackbird-op-linux-6e033700887bf29d4e59f6978a02d989787be620.zip |
igb: Add support for generic Tx checksums
This patch adds support for generic Tx checksums to the igb 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: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'fs/block_dev.c')
0 files changed, 0 insertions, 0 deletions