]> git.droids-corp.org - dpdk.git/blobdiff - examples/l3fwd-vf/main.c
ethdev: init all builtin drivers
[dpdk.git] / examples / l3fwd-vf / main.c
index 9e2d9abc8d5ba4113c3877c78fd8d69685dc8b91..ead3cb85f0f5bc68762cf3f08187d64f47a7ca7f 100644 (file)
@@ -967,17 +967,8 @@ MAIN(int argc, char **argv)
                rte_exit(EXIT_FAILURE, "init_mem failed\n");
 
        /* init driver */
-#ifdef RTE_LIBRTE_IGB_PMD
-       if (rte_igb_pmd_init() < 0)
-               rte_exit(EXIT_FAILURE, "Cannot init igb pmd\n");
-#endif
-#ifdef RTE_LIBRTE_IXGBE_PMD
-       if (rte_ixgbe_pmd_init() < 0)
-               rte_exit(EXIT_FAILURE, "Cannot init ixgbe pmd\n");
-
-       if (rte_ixgbevf_pmd_init() < 0)
-               rte_exit(EXIT_FAILURE, "Cannot init ixgbevf pmd\n");
-#endif
+       if (rte_pmd_init_all() < 0)
+               rte_exit(EXIT_FAILURE, "Cannot init pmd\n");
 
        if (rte_eal_pci_probe() < 0)
                rte_exit(EXIT_FAILURE, "Cannot probe PCI\n");