]> git.droids-corp.org - dpdk.git/blobdiff - examples/quota_watermark/qw/init.c
examples: do not probe pci twice
[dpdk.git] / examples / quota_watermark / qw / init.c
index a7f8c8504e74417b287cac1698c09a6c2ef4e1f2..9bc5db3368c828e4466a2f616e3547ff10eae0d4 100644 (file)
@@ -136,13 +136,6 @@ void configure_eth_port(uint8_t port_id)
 void
 init_dpdk(void)
 {
-    int ret;
-
-    /* Bind the drivers to usable devices */
-    ret = rte_eal_pci_probe();
-    if (ret < 0)
-        rte_exit(EXIT_FAILURE, "rte_eal_pci_probe(): error %d\n", ret);
-
     if (rte_eth_dev_count() < 2)
         rte_exit(EXIT_FAILURE, "Not enough ethernet port available\n");
 }