From 699d55e3ff15526ccd48418fdb1239fa11f9e93a Mon Sep 17 00:00:00 2001 From: Pablo de Lara Date: Thu, 30 Oct 2014 12:23:39 +0000 Subject: [PATCH] eal/bsd: fix pci mapping in secondary process On FreeBSD, when initializing a secondary process, EAL was complaining if there were ports not bound to nic_uio module, exiting the application, which should not happen, as this is expected behaviour, and not an error Signed-off-by: Pablo de Lara Acked-by: Thomas Monjalon --- lib/librte_eal/bsdapp/eal/eal_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_eal/bsdapp/eal/eal_pci.c b/lib/librte_eal/bsdapp/eal/eal_pci.c index 54fcaf0c46..74ecce75d9 100644 --- a/lib/librte_eal/bsdapp/eal/eal_pci.c +++ b/lib/librte_eal/bsdapp/eal/eal_pci.c @@ -183,7 +183,7 @@ pci_uio_map_secondary(struct rte_pci_device *dev) } RTE_LOG(ERR, EAL, "Cannot find resource for device\n"); - return -1; + return 1; } /* map the PCI resource of a PCI device in virtual memory */ -- 2.20.1