X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;ds=sidebyside;f=examples%2Fqos_sched%2Finit.c;h=c9e487975c2f8f44207f140b09c6657d10af41b6;hb=f7b36e8f36e8f3bbebd9f4843466580354aa8179;hp=8914f766f6d62f8ccceb8cc0068865261df7908a;hpb=e2ef4628ee294c6dafd09ca39323f3a7ffbfc128;p=dpdk.git diff --git a/examples/qos_sched/init.c b/examples/qos_sched/init.c index 8914f766f6..c9e487975c 100644 --- a/examples/qos_sched/init.c +++ b/examples/qos_sched/init.c @@ -298,7 +298,7 @@ int app_init(void) char ring_name[MAX_NAME_LEN]; char pool_name[MAX_NAME_LEN]; - if (rte_eth_dev_count() == 0) + if (rte_eth_dev_count_avail() == 0) rte_exit(EXIT_FAILURE, "No Ethernet port - bye\n"); /* load configuration profile */