commit | 024cc792f9309f1342a2fd7bd5840e112b333687 | [log] [tgz] |
---|---|---|
author | Huazhong Tan <tanhuazhong@huawei.com> | Mon Jul 02 15:50:25 2018 +0800 |
committer | David S. Miller <davem@davemloft.net> | Mon Jul 02 22:49:14 2018 +0900 |
tree | 152a2efbf7c972cecef8680ea29e0dc1a4d64e21 | |
parent | 7a7056e3dfa6636989b821d890448ae49375bd22 [diff] |
net: hns3: use dma_zalloc_coherent instead of kzalloc/dma_map_single Reference to Documentation/DMA-API-HOWTO.txt, Streaming DMA mappings which are usually mapped for one DMA transfer, Network card DMA ring descriptors should use Consistent DMA mappings. Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>