]> git.droids-corp.org - dpdk.git/blobdiff - examples/vmdq/main.c
ethdev: deprecate port count function
[dpdk.git] / examples / vmdq / main.c
index 2f3eb74f50aed4a17400a0fc80e59744c842746f..52596dd5e776ac0aae8a298ec4ea4bb738987ed7 100644 (file)
@@ -580,7 +580,7 @@ main(int argc, char *argv[])
        if (rte_lcore_count() > RTE_MAX_LCORE)
                rte_exit(EXIT_FAILURE, "Not enough cores\n");
 
-       nb_ports = rte_eth_dev_count();
+       nb_ports = rte_eth_dev_count_avail();
 
        /*
         * Update the global var NUM_PORTS and global array PORTS