summaryrefslogtreecommitdiff
path: root/examples/skeleton/basicfwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/skeleton/basicfwd.c')
-rw-r--r--examples/skeleton/basicfwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/skeleton/basicfwd.c b/examples/skeleton/basicfwd.c
index 5ac1dc8..03bc358 100644
--- a/examples/skeleton/basicfwd.c
+++ b/examples/skeleton/basicfwd.c
@@ -173,7 +173,7 @@ main(int argc, char *argv[])
argv += ret;
/* Check that there is an even number of ports to send/receive on. */
- nb_ports = rte_eth_dev_count();
+ nb_ports = rte_eth_dev_count_avail();
if (nb_ports < 2 || (nb_ports & 1))
rte_exit(EXIT_FAILURE, "Error: number of ports must be even\n");