aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quota_watermark/qw/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quota_watermark/qw/init.c')
-rw-r--r--examples/quota_watermark/qw/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quota_watermark/qw/init.c b/examples/quota_watermark/qw/init.c
index d4a69183..00725bc9 100644
--- a/examples/quota_watermark/qw/init.c
+++ b/examples/quota_watermark/qw/init.c
@@ -112,7 +112,7 @@ void configure_eth_port(uint16_t port_id)
void
init_dpdk(void)
{
- if (rte_eth_dev_count() < 2)
+ if (rte_eth_dev_count_avail() < 2)
rte_exit(EXIT_FAILURE, "Not enough ethernet port available\n");
}