]> 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)
commit8bf0ce5091a297018630286f195b4a67f2c646c4
treeff1a8a805b85b7c26488619333de6752a09ce564
parent61610be93939a49a3b84c7583e67e41aa40ecf21
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