X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fnet%2Fhinic%2Fbase%2Fhinic_pmd_api_cmd.c;h=b72edc065209e34467ed1f647ccb2cf4ac17ccbd;hb=da4eae278b56e698c64d0c39939a7a55c5b6abdd;hp=dbffc2e3b01fe447163c3f177ea8e4048d8f3704;hpb=b8582d051af1b9b696b963a81ded9a585e497c40;p=dpdk.git diff --git a/drivers/net/hinic/base/hinic_pmd_api_cmd.c b/drivers/net/hinic/base/hinic_pmd_api_cmd.c index dbffc2e3b0..b72edc0652 100644 --- a/drivers/net/hinic/base/hinic_pmd_api_cmd.c +++ b/drivers/net/hinic/base/hinic_pmd_api_cmd.c @@ -658,7 +658,7 @@ static int alloc_cmd_buf(struct hinic_api_cmd_chain *chain, cmd_vaddr_alloc = dma_zalloc_coherent(dev, (API_CMD_BUF_SIZE + API_PAYLOAD_ALIGN_SIZE), - &cmd_paddr, GFP_KERNEL); + &cmd_paddr, SOCKET_ID_ANY); if (!cmd_vaddr_alloc) { PMD_DRV_LOG(ERR, "Allocate API CMD dma memory failed"); return -ENOMEM; @@ -712,7 +712,7 @@ static int api_cmd_create_cell(struct hinic_api_cmd_chain *chain, node_vaddr_alloc = dma_zalloc_coherent(dev, (chain->cell_size + API_CMD_NODE_ALIGN_SIZE), - &node_paddr, GFP_KERNEL); + &node_paddr, SOCKET_ID_ANY); if (!node_vaddr_alloc) { PMD_DRV_LOG(ERR, "Allocate dma API CMD cell failed"); return -ENOMEM; @@ -889,8 +889,7 @@ static int api_chain_init(struct hinic_api_cmd_chain *chain, chain->wb_status = (struct hinic_api_cmd_status *) dma_zalloc_coherent(dev, sizeof(*chain->wb_status), - &chain->wb_status_paddr, - GFP_KERNEL); + &chain->wb_status_paddr, SOCKET_ID_ANY); if (!chain->wb_status) { PMD_DRV_LOG(ERR, "Allocate DMA wb status failed"); err = -ENOMEM;