Skip to content
Snippets Groups Projects
Commit 4247ef02 authored by Cai Huoqing's avatar Cai Huoqing Committed by David S. Miller
Browse files

ibmveth: Use dma_alloc_coherent() instead of kmalloc/dma_map_single()


Replacing kmalloc/kfree/dma_map_single/dma_unmap_single()
with dma_alloc_coherent/dma_free_coherent() helps to reduce
code size, and simplify the code, and coherent DMA will not
clear the cache every time.

Signed-off-by: default avatarCai Huoqing <caihuoqing@baidu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f947fcaf
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment