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)
commit4247ef02693716f9df87c37a181b7120c7b24648
tree7345f490bafd0819dede23426136dfca37d9ef28
parentf947fcaffd6a7e6bc6a5ff990e4125e501a7e68d
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