]> www.infradead.org Git - users/jedix/linux-maple.git/commit
igb: Only DMA sync frame length
authorAndrew Lunn <andrew@lunn.ch>
Fri, 3 Jun 2016 21:03:25 +0000 (23:03 +0200)
committerKirtikar Kashyap <kirtikar.kashyap@oracle.com>
Thu, 22 Jun 2017 21:28:31 +0000 (14:28 -0700)
commit1d6d3a304a7f4ed8bbb1583fe3413b9420db8296
tree49da0b4767f436d43c79302f417097be9128059e
parentbe7bb21a99c4f499d34c2321afed079633d8a878
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>
(cherry picked from commit 64f2525ca4e76b1704b867458808ed6ffc58b803)

Orabug: 26325580

Signed-off-by: Kirtikar Kashyap <kirtikar.kashyap@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
drivers/net/ethernet/intel/igb/igb_main.c