[PATCH dpdk-kmods] linux/igb_uio: Adjust functions to the current kernel API

Thomas Monjalon thomas at monjalon.net
Sun Feb 5 18:36:24 CET 2023


20/10/2022 15:00, Leonid Bloch:
> After commit 7968778914e53788a01c2dee2692cab157de9ac0 in the upstream
> kernel (v5.18+) The functions pci_set_dma_mask() and
> pci_set_consistent_dma_mask() are deprecated. Replacing them with the
> new substitute (to avoid a compilation error).
> 
> Signed-off-by: Leonid Bloch <lb.workbox at gmail.com>
> ---
> -	err = pci_set_dma_mask(dev,  DMA_BIT_MASK(64));
> +	err = dma_set_mask(&dev->dev,  DMA_BIT_MASK(64));
[...]
> -	err = pci_set_consistent_dma_mask(dev, DMA_BIT_MASK(64));
> +	err = dma_set_coherent_mask(&dev->dev, DMA_BIT_MASK(64));


The patch from Ferruh is simplifying the code:
https://patches.dpdk.org/project/dpdk/patch/20221216115732.3552650-1-ferruh.yigit@amd.com/




More information about the dev mailing list