ixgbe: Only DMA sync frame length
authorAlexander Duyck <alexander.h.duyck@intel.com>
Tue, 17 Jan 2017 16:35:44 +0000 (08:35 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 16 Feb 2017 12:02:44 +0000 (04:02 -0800)
commitf215af8cae4c283d8a522ea166d94f763dc4aebf
treed8b5c1b66c107a1c707051d71d5bfeac816631a4
parentaf43da0dba0b1bc7af259cd7d6d76054f3acfab0
ixgbe: Only DMA sync frame length

On some platforms, syncing a buffer for DMA is expensive. Rather than
sync the whole 2K receive buffer, only synchronise the length of the
frame, which will typically be the MTU, or a much smaller TCP ACK.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c