pci: distinguish between legitimate failures and non-fatal errors
[dpdk.git] / lib / librte_eal / linuxapp / eal / eal_pci_uio.c
index 7c75593..96aa24d 100644 (file)
@@ -150,7 +150,7 @@ pci_uio_map_secondary(struct rte_pci_device *dev)
        }
 
        RTE_LOG(ERR, EAL, "Cannot find resource for device\n");
-       return -1;
+       return 1;
 }
 
 static int
@@ -302,7 +302,7 @@ pci_uio_map_resource(struct rte_pci_device *dev)
        if (uio_num < 0) {
                RTE_LOG(WARNING, EAL, "  "PCI_PRI_FMT" not managed by UIO driver, "
                                "skipping\n", loc->domain, loc->bus, loc->devid, loc->function);
-               return -1;
+               return 1;
        }
        rte_snprintf(devname, sizeof(devname), "/dev/uio%u", uio_num);