i40e/i40evf: Limit DMA sync of RX buffers to actual packet size
authorScott Peterson <scott.d.peterson@intel.com>
Fri, 10 Feb 2017 07:37:28 +0000 (23:37 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 12 Feb 2017 04:39:01 +0000 (20:39 -0800)
commit7987dcd7b95111a5acbf5abdbf155eedacd3546b
treef89cb5472c01b4c3020de196674ea368f781f899
parente5f77f4a2ff2d6ce2d973ebc62084d92f203c9f6
i40e/i40evf: Limit DMA sync of RX buffers to actual packet size

On packet RX, we perform a DMA sync for CPU before passing the
packet up.  Here we limit that sync to the actual length of the
incoming packet, rather than always syncing the entire buffer.

Change-ID: I626aaf6c37275a8ce9e81efcaa773f327b331487
Signed-off-by: Scott Peterson <scott.d.peterson@intel.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/i40evf/i40e_txrx.c