X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=examples%2Fquota_watermark%2Fqw%2Finit.c;h=00725bc95d58ec2b6eb10c276982548ebfb6aed0;hb=refs%2Fheads%2Fupstream-18.05-stable;hp=d4a691839c66420b705bd8497fbea67d1b9cb0f6;hpb=9f3a8cb4cfe59ea63e267f69700fb0fde13d7dd3;p=deb_dpdk.git 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"); }