ethdev: deprecate port count function
[dpdk.git] / examples / performance-thread / l3fwd-thread / main.c
index 699b99d..f51e6b0 100644 (file)
@@ -3514,7 +3514,7 @@ main(int argc, char **argv)
        if (ret < 0)
                rte_exit(EXIT_FAILURE, "init_rx_rings 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");