]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i40e/i40evf: Add support for mapping pages with DMA attributes
authorAlexander Duyck <alexander.h.duyck@intel.com>
Mon, 30 Jan 2017 20:29:35 +0000 (12:29 -0800)
committerJack Vogel <jack.vogel@oracle.com>
Wed, 5 Jul 2017 20:20:48 +0000 (13:20 -0700)
commitdeeb1d02cc5c5a6321891d2f31d7088c47227815
treebb227875eb5f9a1f9ed196c931b3f2076f17e928
parent0016903caec5582f66c6993eac302deb2cf49e4c
i40e/i40evf: Add support for mapping pages with DMA attributes

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.

Change-ID: If176824e8231c5b24b8a5d55b339a6026738fc75
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>
Orabug: 26396243
Local modifications to account for dma_attr data type difference.
(cherry picked from commit 59605bc09630c2b577858c371edf89c099b5f925)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
Reviewed-by: Shannon Nelson <shannon.nelson@oracle.com>
drivers/net/ethernet/intel/i40e/i40e_txrx.c
drivers/net/ethernet/intel/i40e/i40e_txrx.h
drivers/net/ethernet/intel/i40evf/i40e_txrx.c
drivers/net/ethernet/intel/i40evf/i40e_txrx.h