]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Update driver to make use of DMA attributes in Rx path
authorAlexander Duyck <alexander.h.duyck@intel.com>
Tue, 17 Jan 2017 16:35:54 +0000 (08:35 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 16 Feb 2017 12:02:44 +0000 (04:02 -0800)
commitf112d8befdc1d5ef26d463b6096568faaf55c0bd
treec62feaa7d3d3e61aa5d1db29add1893eb175f687
parent3495e5f95a3fe17d0ea89e8c611a87e620530ee6
ixgbe: Update driver to make use of DMA attributes in Rx path

This patch adds support for DMA_ATTR_SKIP_CPU_SYNC and
DMA_ATTR_WEAK_ORDERING.  By enabling both of these for the Rx path we are
able to see performance improvements on architectures that implement either
one due to the fact that page mapping and unmapping only has to sync what
is actually being used instead of the entire buffer.  In addition by
enabling the weak ordering attribute enables a performance improvement for
architectures that can associate a memory ordering with a DMA buffer such
as Sparc.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe.h
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c