]> git.baikalelectronics.ru Git - kernel.git/commit
igb: Only DMA sync frame length
authorAndrew Lunn <andrew@lunn.ch>
Fri, 3 Jun 2016 21:03:25 +0000 (23:03 +0200)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 29 Jun 2016 20:59:24 +0000 (13:59 -0700)
commitcc36d0e9f0f4304c44d0498ab81cc77e7370db0b
tree6ce9a89bd858c128e54130191b621b4fab6fba61
parente8f048b3e574c50db5c8a84293abdef2daae3d0d
igb: 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.

For an IMX6Q, this gives around 6% increased TCP receive performance,
which is cache operations bound and reduces CPU load for TCP transmit.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb_main.c