]> git.baikalelectronics.ru Git - kernel.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)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 15 Mar 2017 09:00:14 +0000 (02:00 -0700)
commit7fb417cb31f11f012cd3107d1a2eaa2d312f2a8a
treee9c567ed31bfb17ab1f5811e227792646cb0f841
parent5e7dda55271ec27a581a48ef63a565c4110e8764
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>
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