]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e/i40evf: Consolidate all header changes into TSO function
authorAlexander Duyck <aduyck@mirantis.com>
Mon, 25 Jan 2016 05:16:35 +0000 (21:16 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Thu, 10 Mar 2016 16:37:36 +0000 (08:37 -0800)
commite127f7818dd13c770a80756ac628323b239dd906
tree370af4791bddf2d52ea2ec22dc9c6e1f5d7163d5
parentb95731f045790904a2dbe90786fae67666e23b7a
i40e/i40evf: Consolidate all header changes into TSO function

Orabug: 22342532

This patch goes through and pulls all of the spots where we were updating
either the TCP or IP checksums in the TSO and checksum path into the TSO
function.  The general idea here is that we should only be updating the
header after we verify we have completed a skb_cow_head check to verify the
head is writable.

One other advantage to doing this is that it makes things much more
obvious.  For example, in the case of IPv6 there was one spot where the
offset of the IPv4 header checksum was being updated which is obviously
incorrect.

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>
(cherry picked from commit c777019af1dc7343be8dc44bb4d32f5e2ef072dd)
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Conflicts:
drivers/net/ethernet/intel/i40e/i40e_txrx.c
drivers/net/ethernet/intel/i40e/i40e_txrx.c
drivers/net/ethernet/intel/i40evf/i40e_txrx.c