fm10k: Limit dma sync of RX buffers to actual packet size
authorScott Peterson <scott.d.peterson@intel.com>
Thu, 3 Nov 2016 23:09:41 +0000 (16:09 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 8 Jan 2017 09:39:49 +0000 (01:39 -0800)
commit881571c12fed1bacf100b13fb2ac528faf57390c
treeae10512ef46f8db8b045201985faabc8124400a2
parent6721f2dad51164fe9da7b3c2f8156529d716b888
fm10k: 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.

Signed-off-by: Scott Peterson <scott.d.peterson@intel.com>
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_main.c