]> git.baikalelectronics.ru Git - kernel.git/commit
i40e/i40evf: Add exception handling for Tx checksum
authorAlexander Duyck <aduyck@mirantis.com>
Mon, 25 Jan 2016 05:17:10 +0000 (21:17 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 18 Feb 2016 19:05:58 +0000 (11:05 -0800)
commit13e25e86a4edf6cefe9e56458a0b71544c1ed50c
treeff1a8a805b85b7c26488619333de6752a09ce564
parent20226d3abb97044a929f26e62b9d2ee77a19586e
i40e/i40evf: Add exception handling for Tx checksum

Add exception handling to the Tx checksum path so that we can handle cases
of TSO where the frame is bad, or Tx checksum where we didn't recognize a
protocol

Drop I40E_TX_FLAGS_CSUM as it is unused, move the CHECKSUM_PARTIAL check
into the function itself so that we can decrease indent.

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>
drivers/net/ethernet/intel/i40e/i40e_txrx.c
drivers/net/ethernet/intel/i40e/i40e_txrx.h
drivers/net/ethernet/intel/i40evf/i40e_txrx.c
drivers/net/ethernet/intel/i40evf/i40e_txrx.h