summaryrefslogtreecommitdiff
path: root/lib/librte_eal/linuxapp/eal/eal.c
diff options
context:
space:
mode:
authorShreyansh Jain <shreyansh.jain@nxp.com>2017-01-18 19:35:22 +0530
committerThomas Monjalon <thomas.monjalon@6wind.com>2017-01-19 04:58:17 +0100
commitc3cec1d8070860b3f68f3418b876a511fb99e981 (patch)
tree4fbbe2dc08f70aa23d181642930924940c892c64 /lib/librte_eal/linuxapp/eal/eal.c
parentf44abbc12fa00a603b50c401828c4d03f74d4f76 (diff)
downloaddpdk-c3cec1d8070860b3f68f3418b876a511fb99e981.zip
dpdk-c3cec1d8070860b3f68f3418b876a511fb99e981.tar.gz
dpdk-c3cec1d8070860b3f68f3418b876a511fb99e981.tar.xz
bus: add probing
Bus implementations can implement a probe handler to match the devices scanned against the drivers registered. Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com> Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Diffstat (limited to 'lib/librte_eal/linuxapp/eal/eal.c')
-rw-r--r--lib/librte_eal/linuxapp/eal/eal.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c
index 1d2a16a..bf6b818 100644
--- a/lib/librte_eal/linuxapp/eal/eal.c
+++ b/lib/librte_eal/linuxapp/eal/eal.c
@@ -884,6 +884,10 @@ rte_eal_init(int argc, char **argv)
rte_eal_mp_remote_launch(sync_func, NULL, SKIP_MASTER);
rte_eal_mp_wait_lcore();
+ /* Probe all the buses and devices/drivers on them */
+ if (rte_bus_probe())
+ rte_panic("Cannot probe devices\n");
+
/* Probe & Initialize PCI devices */
if (rte_eal_pci_probe())
rte_panic("Cannot probe PCI\n");