[dpdk-dev] [PATCH 19/19] pmd: Not having any pci dev pmds shouldn't be fatal
Neil Horman
nhorman at tuxdriver.com
Thu Apr 10 22:50:09 CEST 2014
Since we support non-pci pmds, we shouldn't return a fatal error if we didn't
load any pmds, as we may just be using a non-pci pmd
Signed-off-by: Neil Horman <nhorman at tuxdriver.com>
---
lib/librte_ether/rte_ethdev.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c
index 0b4888c..a835311 100644
--- a/lib/librte_ether/rte_ethdev.c
+++ b/lib/librte_ether/rte_ethdev.c
@@ -149,9 +149,11 @@ int rte_pmd_init_all(void)
TAILQ_FOREACH(entry, &pmd_init_list, next) {
ret = entry->pmd_initfn();
if (ret != 0)
- break;
+ goto out;
}
+ ret = 0;
+out:
return ret;
}
--
1.8.3.1
More information about the dev
mailing list