summaryrefslogtreecommitdiff
path: root/examples/multi_process/client_server_mp
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 /examples/multi_process/client_server_mp
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 'examples/multi_process/client_server_mp')
-rw-r--r--examples/multi_process/client_server_mp/shared/init_drivers.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/examples/multi_process/client_server_mp/shared/init_drivers.h b/examples/multi_process/client_server_mp/shared/init_drivers.h
index 1e73cc7..fc629cc 100644
--- a/examples/multi_process/client_server_mp/shared/init_drivers.h
+++ b/examples/multi_process/client_server_mp/shared/init_drivers.h
@@ -41,14 +41,7 @@
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;