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