summaryrefslogtreecommitdiff
path: root/app/test-pmd
diff options
context:
space:
mode:
authorIntel <intel.com>2012-12-20 00:00:00 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2013-07-25 15:23:28 +0200
commit69d22b8e668d4cbc6d3a5e2873551de5d44c3a45 (patch)
treee244863c1ba45588624b49cd5fe26d4fd5a1e2d4 /app/test-pmd
parentd6537e6a7432ea9cf39fc4ab2112d4bce0e9fe57 (diff)
downloaddpdk-69d22b8e668d4cbc6d3a5e2873551de5d44c3a45.zip
dpdk-69d22b8e668d4cbc6d3a5e2873551de5d44c3a45.tar.gz
dpdk-69d22b8e668d4cbc6d3a5e2873551de5d44c3a45.tar.xz
ethdev: init all builtin drivers
Signed-off-by: Intel
Diffstat (limited to 'app/test-pmd')
-rw-r--r--app/test-pmd/testpmd.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c
index 52caf49..6963598 100644
--- a/app/test-pmd/testpmd.c
+++ b/app/test-pmd/testpmd.c
@@ -1043,17 +1043,8 @@ main(int argc, char** argv)
if (diag < 0)
rte_panic("Cannot init EAL\n");
-#ifdef RTE_LIBRTE_IGB_PMD
- if (rte_igb_pmd_init())
- rte_panic("Cannot init igb PMD\n");
-#endif
-#ifdef RTE_LIBRTE_IXGBE_PMD
- if (rte_ixgbe_pmd_init())
- rte_panic("Cannot init ixgbe PMD\n");
-
- if (rte_ixgbevf_pmd_init())
- rte_panic("Cannot init ixgbevf PMD\n");
-#endif
+ if (rte_pmd_init_all())
+ rte_panic("Cannot init PMD\n");
if (rte_eal_pci_probe())
rte_panic("Cannot probe PCI\n");
@@ -1062,6 +1053,7 @@ main(int argc, char** argv)
if (nb_ports == 0)
rte_exit(EXIT_FAILURE, "No probed ethernet devices - check that "
"CONFIG_RTE_LIBRTE_IGB_PMD=y and that "
+ "CONFIG_RTE_LIBRTE_EM_PMD=y and that "
"CONFIG_RTE_LIBRTE_IXGBE_PMD=y in your "
"configuration file\n");