crypto/dpaa_sec: fix null check in uninit
[dpdk.git] / test / test / test_pmd_perf.c
index 0e64a58..54bc4f6 100644 (file)
@@ -676,7 +676,7 @@ test_pmd_perf(void)
        signal(SIGUSR1, signal_handler);
        signal(SIGUSR2, signal_handler);
 
-       nb_ports = rte_eth_dev_count();
+       nb_ports = rte_eth_dev_count_avail();
        if (nb_ports < NB_ETHPORTS_USED) {
                printf("At least %u port(s) used for perf. test\n",
                       NB_ETHPORTS_USED);