summaryrefslogtreecommitdiffstats
path: root/examples/server_node_efd/node/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/server_node_efd/node/node.c')
-rw-r--r--examples/server_node_efd/node/node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/server_node_efd/node/node.c b/examples/server_node_efd/node/node.c
index 84f7bcff..3b97fbd4 100644
--- a/examples/server_node_efd/node/node.c
+++ b/examples/server_node_efd/node/node.c
@@ -320,7 +320,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(node_id));