ethdev: deprecate port count function
[dpdk.git] / examples / vmdq_dcb / main.c
index 9c68ab0..2626a2f 100644 (file)
@@ -642,7 +642,7 @@ main(int argc, char *argv[])
                                " number of cores(1-%d)\n\n", RTE_MAX_LCORE);
        }
 
-       nb_ports = rte_eth_dev_count();
+       nb_ports = rte_eth_dev_count_avail();
 
        /*
         * Update the global var NUM_PORTS and global array PORTS