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

2020-09-13 Thread David Miller
From: Christophe JAILLET Date: Sun, 13 Sep 2020 08:14:17 +0200 > 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. > > W

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

2020-09-13 Thread Christophe JAILLET
Le 13/09/2020 à 08:55, Leon Romanovsky a écrit : On Sun, Sep 13, 2020 at 08:14:17AM +0200, Christophe JAILLET wrote: > [...] @@ -504,9 +510,8 @@ static int alloc_list(struct net_device *dev) sizeof(struct netdev_desc)); /* Rubicon

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

2020-09-12 Thread Leon Romanovsky
On Sun, Sep 13, 2020 at 08:14:17AM +0200, Christophe JAILLET wrote: > 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. > >

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

2020-09-12 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 'rio_probe1()' GFP_KERNEL can be used because it is