diff options
author | Huazhong Tan <tanhuazhong@huawei.com> | 2018-07-02 15:50:25 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-02 22:49:14 +0900 |
commit | 024cc792f9309f1342a2fd7bd5840e112b333687 (patch) | |
tree | 152a2efbf7c972cecef8680ea29e0dc1a4d64e21 /drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c | |
parent | net: hns3: give default option while dependency HNS3 set (diff) | |
download | linux-dev-024cc792f9309f1342a2fd7bd5840e112b333687.tar.xz linux-dev-024cc792f9309f1342a2fd7bd5840e112b333687.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mdio.c')
0 files changed, 0 insertions, 0 deletions