summaryrefslogtreecommitdiff
path: root/examples/qos_sched
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/qos_sched
parent6bc2415c3387ae72f2ce3677f0e3540e734583d5 (diff)
downloaddpdk-draft-windows-68fa37e021a1c44c6b2a947cefc20eb61c729947.zip
dpdk-draft-windows-68fa37e021a1c44c6b2a947cefc20eb61c729947.tar.gz
dpdk-draft-windows-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/qos_sched')
-rw-r--r--examples/qos_sched/init.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/examples/qos_sched/init.c b/examples/qos_sched/init.c
index cbfd63f..f38802e 100644
--- a/examples/qos_sched/init.c
+++ b/examples/qos_sched/init.c
@@ -304,9 +304,6 @@ int app_init(void)
char ring_name[MAX_NAME_LEN];
char pool_name[MAX_NAME_LEN];
- if (rte_eal_pci_probe() < 0)
- rte_exit(EXIT_FAILURE, "Cannot probe PCI\n");
-
if (rte_eth_dev_count() == 0)
rte_exit(EXIT_FAILURE, "No Ethernet port - bye\n");