]> git.droids-corp.org - dpdk.git/blobdiff - examples/l3fwd-vf/main.c
ethdev: deprecate port count function
[dpdk.git] / examples / l3fwd-vf / main.c
index dd0e057efa28093d96e7e53fa7fa47409ddf1b42..aaafb7bc2d9c5739dfbfab1855f6e91e8382b9b6 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");