ethdev: deprecate port count function
[dpdk.git] / examples / kni / main.c
index 901480a..4b162de 100644 (file)
@@ -926,7 +926,7 @@ main(int argc, char** argv)
        }
 
        /* Get number of ports found in scan */
-       nb_sys_ports = rte_eth_dev_count();
+       nb_sys_ports = rte_eth_dev_count_avail();
        if (nb_sys_ports == 0)
                rte_exit(EXIT_FAILURE, "No supported Ethernet device found\n");