]> 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)
commitfec66419e7aa22b5b1b66a939c6dc60c7b4030e1
tree6ce9a89bd858c128e54130191b621b4fab6fba61
parentd16cb7822be60cc2838c4aa724cb55a9c2316920
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