Same idea as commit
bd80d4730aca ("pci: rework ioport map error handling").
Signed-off-by: David Marchand <david.marchand@6wind.com>
int
rte_eal_pci_ioport_unmap(struct rte_pci_ioport *p)
{
int
rte_eal_pci_ioport_unmap(struct rte_pci_ioport *p)
{
switch (p->dev->kdrv) {
#ifdef VFIO_PRESENT
case RTE_KDRV_VFIO:
switch (p->dev->kdrv) {
#ifdef VFIO_PRESENT
case RTE_KDRV_VFIO:
if (pci_vfio_is_enabled())
ret = pci_vfio_ioport_unmap(p);
break;
if (pci_vfio_is_enabled())
ret = pci_vfio_ioport_unmap(p);
break;
#if defined(RTE_ARCH_X86)
/* special case for x86 ... nothing to do */
ret = 0;
#if defined(RTE_ARCH_X86)
/* special case for x86 ... nothing to do */
ret = 0;