]> git.baikalelectronics.ru Git - kernel.git/commit
ibmveth: Use dma_alloc_coherent() instead of kmalloc/dma_map_single()
authorCai Huoqing <caihuoqing@baidu.com>
Sun, 26 Sep 2021 06:52:14 +0000 (14:52 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Sep 2021 12:25:25 +0000 (13:25 +0100)
commit1fdbf4e0e10c8c735c226b6e83819a9d3036a875
tree7345f490bafd0819dede23426136dfca37d9ef28
parent41478e37ec37b3f0bff9f39755314165215647ed
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: Cai Huoqing <caihuoqing@baidu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmveth.c