]> git.droids-corp.org - dpdk.git/blobdiff - test/test/test_pmd_ring.c
mempool: fix alignment of memzone length when populating
[dpdk.git] / test / test / test_pmd_ring.c
index 0787e4ebf5ac0ab6a86f11d004a3ac17ab957935..2196201259e9b069a51949270383635070c1ad6e 100644 (file)
@@ -399,7 +399,7 @@ test_pmd_ring(void)
        int port, cmdl_port0 = -1;
        uint8_t nb_ports;
 
-       nb_ports = rte_eth_dev_count();
+       nb_ports = rte_eth_dev_count_avail();
        printf("nb_ports=%d\n", (int)nb_ports);
 
        /*  create the rings and eth_rings in the test code.