[dpdk-dev,3/3] eal: probe pci devices at rte_eal_init time
Commit Message
Restore call to rte_eal_pci_probe() from commit
a155d430119d947d3cb03136ce50924a642dbfe0 so that applications do not have to
know that pci devices should be probed.
Signed-off-by: David Marchand <david.marchand@6wind.com>
---
lib/librte_eal/bsdapp/eal/eal.c | 4 ++++
lib/librte_eal/linuxapp/eal/eal.c | 4 ++++
2 files changed, 8 insertions(+)
@@ -930,6 +930,10 @@ rte_eal_init(int argc, char **argv)
rte_eal_mp_remote_launch(sync_func, NULL, SKIP_MASTER);
rte_eal_mp_wait_lcore();
+ /* Probe & Initialize PCI devices */
+ if (rte_eal_pci_probe())
+ rte_panic("Cannot probe PCI\n");
+
return fctret;
}
@@ -1207,6 +1207,10 @@ rte_eal_init(int argc, char **argv)
rte_eal_mp_remote_launch(sync_func, NULL, SKIP_MASTER);
rte_eal_mp_wait_lcore();
+ /* Probe & Initialize PCI devices */
+ if (rte_eal_pci_probe())
+ rte_panic("Cannot probe PCI\n");
+
return fctret;
}