pci: identify devices not managed by any kernel driver
authorHuawei Xie <huawei.xie@intel.com>
Tue, 8 Mar 2016 15:33:39 +0000 (23:33 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 9 Mar 2016 23:36:51 +0000 (00:36 +0100)
Use RTE_KDRV_NONE to indicate that kernel driver (other than VFIO/UIO) isn't
managing the device.

Signed-off-by: Huawei Xie <huawei.xie@intel.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Acked-by: David Marchand <david.marchand@6wind.com>
lib/librte_eal/linuxapp/eal/eal_pci.c

index d2e8a09..f029957 100644 (file)
@@ -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)) {