]> git.droids-corp.org - dpdk.git/blobdiff - examples/multi_process/client_server_mp/shared/init_drivers.h
ethdev: init all builtin drivers
[dpdk.git] / examples / multi_process / client_server_mp / shared / init_drivers.h
index 1e73cc70cdd8cc45bbd32e707d85c30d81643173..fc629ccff9651c74ff1773a86404827777543f3f 100644 (file)
 static inline int
 init_drivers(void)
 {
-       if (
-#ifdef RTE_LIBRTE_IGB_PMD
-                       (rte_igb_pmd_init() < 0) ||
-#endif
-#ifdef RTE_LIBRTE_IXGBE_PMD
-                       (rte_ixgbe_pmd_init() < 0) ||
-#endif
-                       (rte_eal_pci_probe() < 0 ))
+       if (rte_pmd_init_all() < 0 || rte_eal_pci_probe() < 0)
                return -1;
 
        return 0;