examples/performance-thread: fix return type of threads
[dpdk.git] / examples / l3fwd-acl / main.c
index 2c891b4..33ad467 100644 (file)
@@ -1891,7 +1891,7 @@ main(int argc, char **argv)
        if (ret < 0)
                rte_exit(EXIT_FAILURE, "init_lcore_rx_queues failed\n");
 
-       nb_ports = rte_eth_dev_count();
+       nb_ports = rte_eth_dev_count_avail();
 
        if (check_port_config() < 0)
                rte_exit(EXIT_FAILURE, "check_port_config failed\n");