aboutsummaryrefslogtreecommitdiffstats
path: root/examples/ethtool/ethtool-app/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ethtool/ethtool-app/main.c')
-rw-r--r--examples/ethtool/ethtool-app/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ethtool/ethtool-app/main.c b/examples/ethtool/ethtool-app/main.c
index 702feabe..c1815bb9 100644
--- a/examples/ethtool/ethtool-app/main.c
+++ b/examples/ethtool/ethtool-app/main.c
@@ -251,7 +251,7 @@ int main(int argc, char **argv)
if (cnt_args_parsed < 0)
rte_exit(EXIT_FAILURE, "rte_eal_init(): Failed");
- cnt_ports = rte_eth_dev_count();
+ cnt_ports = rte_eth_dev_count_avail();
printf("Number of NICs: %i\n", cnt_ports);
if (cnt_ports == 0)
rte_exit(EXIT_FAILURE, "No available NIC ports!\n");