pci: ignore devices already managed in Linux when mapping x86 ioport
[dpdk.git] / lib / librte_eal / linuxapp / eal / eal_pci.c
index 3c2198a..9f75252 100644 (file)
@@ -620,11 +620,13 @@ rte_eal_pci_ioport_map(struct rte_pci_device *dev, int bar,
        case RTE_KDRV_UIO_GENERIC:
                ret = pci_uio_ioport_map(dev, bar, p);
                break;
-       default:
+       case RTE_KDRV_NONE:
 #if defined(RTE_ARCH_X86)
                ret = pci_ioport_map(dev, bar, p);
 #endif
                break;
+       default:
+               break;
        }
 
        if (!ret)