From: Huawei Xie Date: Tue, 8 Mar 2016 15:33:39 +0000 (+0800) Subject: pci: identify devices not managed by any kernel driver X-Git-Tag: spdx-start~7517 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=ee4e23ada8cb0fcb566295756d30bd21e757c783;p=dpdk.git pci: identify devices not managed by any kernel driver Use RTE_KDRV_NONE to indicate that kernel driver (other than VFIO/UIO) isn't managing the device. 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 d2e8a09e4a..f0299574a2 100644 --- a/lib/librte_eal/linuxapp/eal/eal_pci.c +++ b/lib/librte_eal/linuxapp/eal/eal_pci.c @@ -362,7 +362,7 @@ pci_scan_one(const char *dirname, uint16_t domain, uint8_t bus, else dev->kdrv = RTE_KDRV_UNKNOWN; } else - dev->kdrv = RTE_KDRV_UNKNOWN; + dev->kdrv = RTE_KDRV_NONE; /* device is valid, add in list (sorted) */ if (TAILQ_EMPTY(&pci_device_list)) {