ethdev: deprecate port count function
[dpdk.git] / examples / link_status_interrupt / main.c
index ad0dd39..f568956 100644 (file)
@@ -542,7 +542,7 @@ main(int argc, char **argv)
        if (lsi_pktmbuf_pool == NULL)
                rte_panic("Cannot init mbuf pool\n");
 
-       nb_ports = rte_eth_dev_count();
+       nb_ports = rte_eth_dev_count_avail();
        if (nb_ports == 0)
                rte_panic("No Ethernet port - bye\n");