ethdev: deprecate port count function
[dpdk.git] / examples / l3fwd-vf / main.c
index dd0e057..aaafb7b 100644 (file)
@@ -949,7 +949,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");