]> git.droids-corp.org - dpdk.git/blobdiff - examples/l2fwd-crypto/main.c
ethdev: deprecate port count function
[dpdk.git] / examples / l2fwd-crypto / main.c
index b1ad19284166667d8034dc1425b5d5b16ac1647c..422044898859af169d448661b4a434e11ac26b2a 100644 (file)
@@ -2311,7 +2311,7 @@ initialize_ports(struct l2fwd_crypto_options *options)
 {
        uint16_t last_portid = 0, portid;
        unsigned enabled_portcount = 0;
-       unsigned nb_ports = rte_eth_dev_count();
+       unsigned nb_ports = rte_eth_dev_count_avail();
 
        if (nb_ports == 0) {
                printf("No Ethernet ports - bye\n");