aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_sched.c
diff options
context:
space:
mode:
authorMaciej Fijalkowski <[email protected]>2019-02-13 18:51:07 +0000
committerJeff Kirsher <[email protected]>2019-03-25 17:10:39 +0000
commita65f71fed5add2ec5713fcc605842f5f2dff22a3 (patch)
treed858cb4580d985e171757963fd67d8c1c6bedd6b /drivers/net/ethernet/intel/ice/ice_sched.c
parentice: Limit the ice_add_rx_frag to frag addition (diff)
downloadkernel-a65f71fed5add2ec5713fcc605842f5f2dff22a3.tar.gz
kernel-a65f71fed5add2ec5713fcc605842f5f2dff22a3.zip
ice: map Rx buffer pages with DMA attributes
Provide DMA_ATTR_WEAK_ORDERING and DMA_ATTR_SKIP_CPU_SYNC attributes to the DMA API during the mapping operations on Rx side. With this change the non-x86 platforms will be able to sync only with what is being used (2k buffer) instead of entire page. This should yield a slight performance improvement. Furthermore, DMA unmap may destroy the changes that were made to the buffer by CPU when platform is not a x86 one. DMA_ATTR_SKIP_CPU_SYNC attribute usage fixes this issue. Also add a sync_single_for_device call during the Rx buffer assignment, to make sure that the cache lines are cleared before device attempting to write to the buffer. Signed-off-by: Maciej Fijalkowski <[email protected]> Signed-off-by: Anirudh Venkataramanan <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_sched.c')
0 files changed, 0 insertions, 0 deletions