]> git.droids-corp.org - dpdk.git/blobdiff - examples/l3fwd-acl/main.c
examples/performance-thread: fix return type of threads
[dpdk.git] / examples / l3fwd-acl / main.c
index 2c891b4945cc42534f53732d151a63a208d2d4c0..33ad467d382cb7fc21d471948a21d4222fc4ab8b 100644 (file)
@@ -1891,7 +1891,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");