summaryrefslogtreecommitdiff
path: root/examples/multi_process/client_server_mp/mp_client/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/multi_process/client_server_mp/mp_client/client.c')
-rw-r--r--examples/multi_process/client_server_mp/mp_client/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/multi_process/client_server_mp/mp_client/client.c b/examples/multi_process/client_server_mp/mp_client/client.c
index 92955e9..c23dd3f 100644
--- a/examples/multi_process/client_server_mp/mp_client/client.c
+++ b/examples/multi_process/client_server_mp/mp_client/client.c
@@ -220,7 +220,7 @@ main(int argc, char *argv[])
if (parse_app_args(argc, argv) < 0)
rte_exit(EXIT_FAILURE, "Invalid command-line arguments\n");
- if (rte_eth_dev_count() == 0)
+ if (rte_eth_dev_count_avail() == 0)
rte_exit(EXIT_FAILURE, "No Ethernet ports - bye\n");
rx_ring = rte_ring_lookup(get_rx_queue_name(client_id));