summaryrefslogtreecommitdiff
path: root/examples/link_status_interrupt
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/link_status_interrupt
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/link_status_interrupt')
-rw-r--r--examples/link_status_interrupt/main.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/examples/link_status_interrupt/main.c b/examples/link_status_interrupt/main.c
index 1a87551..b8b7571 100644
--- a/examples/link_status_interrupt/main.c
+++ b/examples/link_status_interrupt/main.c
@@ -663,9 +663,6 @@ MAIN(int argc, char **argv)
if (lsi_pktmbuf_pool == NULL)
rte_panic("Cannot init mbuf pool\n");
- if (rte_eal_pci_probe() < 0)
- rte_panic("Cannot probe PCI\n");
-
nb_ports = rte_eth_dev_count();
if (nb_ports == 0)
rte_panic("No Ethernet port - bye\n");