]> git.droids-corp.org - dpdk.git/blobdiff - examples/l3fwd/main.c
ethdev: deprecate port count function
[dpdk.git] / examples / l3fwd / main.c
index ec1da5c1817010f4d0b7361f797e2bf13244cab1..bf7dbd81488e843c84051aa08a035cb2faf60033 100644 (file)
@@ -826,7 +826,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");