summaryrefslogtreecommitdiff
path: root/examples/vmdq
diff options
context:
space:
mode:
authorThomas Monjalon <thomas.monjalon@6wind.com>2014-09-26 13:42:51 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-09-29 13:08:53 +0200
commit68fa37e021a1c44c6b2a947cefc20eb61c729947 (patch)
tree1c78336e4b2e5793e4b2e4d64a10f82532b09aac /examples/vmdq
parent6bc2415c3387ae72f2ce3677f0e3540e734583d5 (diff)
downloaddpdk-68fa37e021a1c44c6b2a947cefc20eb61c729947.zip
dpdk-68fa37e021a1c44c6b2a947cefc20eb61c729947.tar.gz
dpdk-68fa37e021a1c44c6b2a947cefc20eb61c729947.tar.xz
examples: do not probe pci twice
Since commit a155d430119 ("support link bonding device initialization"), rte_eal_pci_probe() is called in rte_eal_init(). So it doesn't have to be called by application anymore. It has been fixed for testpmd in commit 2950a769315, and this patch remove it from other applications. Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com> Acked-by: David Marchand <david.marchand@6wind.com> Acked-by: Neil Horman <nhorman@tuxdriver.com>
Diffstat (limited to 'examples/vmdq')
-rw-r--r--examples/vmdq/main.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/examples/vmdq/main.c b/examples/vmdq/main.c
index 35df234..a162d8b 100644
--- a/examples/vmdq/main.c
+++ b/examples/vmdq/main.c
@@ -597,9 +597,6 @@ MAIN(int argc, char *argv[])
if (ret < 0)
rte_exit(EXIT_FAILURE, "Invalid VMDQ argument\n");
- if (rte_eal_pci_probe() != 0)
- rte_exit(EXIT_FAILURE, "Error with NIC driver initialization\n");
-
for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id ++)
if (rte_lcore_is_enabled(lcore_id))
lcore_ids[core_id ++] = lcore_id;