]> git.droids-corp.org - dpdk.git/blobdiff - examples/vmdq_dcb/main.c
ethdev: deprecate port count function
[dpdk.git] / examples / vmdq_dcb / main.c
index 9c68ab08952b423f8b5f0ab6555da0ea3589505b..2626a2f19fdf162ac5eb06ed93cc2fedeb67938d 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