Re: [PATCH] net/qla3xxx: switch from 'pci_' to 'dma_' API

2021-01-18 Thread Jakub Kicinski
On Sun, 17 Jan 2021 09:15:42 +0100 Christophe JAILLET wrote: > @@ -2525,9 +2519,8 @@ static int ql_alloc_net_req_rsp_queues(struct > ql3_adapter *qdev) > wmb(); > > qdev->req_q_virt_addr = > - pci_alloc_consistent(qdev->pdev, > - (size_t) qdev->re

[PATCH] net/qla3xxx: switch from 'pci_' to 'dma_' API

2021-01-17 Thread Christophe JAILLET
The wrappers in include/linux/pci-dma-compat.h should go away. The patch has been generated with the coccinelle script below and has been hand modified to replace GFP_ with a correct flag. It has been compile tested. When memory is allocated in 'ql_alloc_net_req_rsp_queues()' GFP_KERNEL can be us