From: Huawei Xie Date: Tue, 8 Mar 2016 15:33:42 +0000 (+0800) Subject: pci: ignore devices already managed in Linux when mapping x86 ioport X-Git-Tag: spdx-start~7515 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b8eb345378bdefc4c976eaaf5abb221e0aca3460;p=dpdk.git pci: ignore devices already managed in Linux when mapping x86 ioport call pci_ioport_map (on x86) only if the pci device is not bound to a kernel driver. Signed-off-by: Huawei Xie Acked-by: Yuanhan Liu Acked-by: David Marchand --- diff --git a/lib/librte_eal/linuxapp/eal/eal_pci.c b/lib/librte_eal/linuxapp/eal/eal_pci.c index 3c2198a152..9f752529b9 100644 --- a/lib/librte_eal/linuxapp/eal/eal_pci.c +++ b/lib/librte_eal/linuxapp/eal/eal_pci.c @@ -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)