]> git.droids-corp.org - dpdk.git/blobdiff - test/test/test_kni.c
ethdev: deprecate port count function
[dpdk.git] / test / test / test_kni.c
index 3d1be56a982d421e03149865f3bd49c10e98f715..56773c8a2ee4943acb00046c2d947a6fea421330 100644 (file)
@@ -489,7 +489,7 @@ test_kni(void)
                return -1;
        }
 
-       nb_ports = rte_eth_dev_count();
+       nb_ports = rte_eth_dev_count_avail();
        if (nb_ports == 0) {
                printf("no supported nic port found\n");
                return -1;