]> git.droids-corp.org - dpdk.git/blobdiff - examples/multi_process/symmetric_mp/main.c
net/mlx5: fix ethtool link setting call order
[dpdk.git] / examples / multi_process / symmetric_mp / main.c
index 75cad0ccaeef8ee38ce0bf316e9a9904482e6f34..16f21a187d2eb124e592964187804eaa260c82eb 100644 (file)
@@ -418,7 +418,7 @@ main(int argc, char **argv)
        argv += ret;
 
        /* determine the NIC devices available */
-       if (rte_eth_dev_count() == 0)
+       if (rte_eth_dev_count_avail() == 0)
                rte_exit(EXIT_FAILURE, "No Ethernet ports - bye\n");
 
        /* parse application arguments (those after the EAL ones) */