[dpdk-dev] [PATCH v2 3/6] pci: move resource mapping to the PCI bus

Andrew Rybchenko arybchenko at solarflare.com
Mon Sep 14 12:22:13 CEST 2020


On 9/14/20 11:23 AM, David Marchand wrote:
> As reported during 20.08 work for Windows, the pci_map_resource API was
> built with the assumption that its flags would be passed to mmap().
> 
> This introduced a regression when adding the rte_mem_map API as reported
> in the workaround commit 9d2b24593724 ("pci: keep API compatibility with
> mmap values").
> 
> This API was only used in the PCI bus code, so move it there.
> With this move, there is no other user so no ambiguity anymore: the
> passed additional flags are documented as rte_mem_map API flags.
> 
> Signed-off-by: David Marchand <david.marchand at redhat.com>

Acked-by: Andrew Rybchenko <arybchenko at solarflare.com>


More information about the dev mailing list