X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fqos_sched%2Finit.c;h=dbdbdefea7069afc91ca850c1604eb81d4b8cb07;hb=f430bbcecf3eed93916f45654f51dd19d6955aa2;hp=cf9e8f4ac7b3199c87295879a97be9f6360bdcca;hpb=70e51a0ea2e00d369508a6b08a272118c857031e;p=dpdk.git diff --git a/examples/qos_sched/init.c b/examples/qos_sched/init.c index cf9e8f4ac7..dbdbdefea7 100644 --- a/examples/qos_sched/init.c +++ b/examples/qos_sched/init.c @@ -163,7 +163,11 @@ app_init_port(uint16_t portid, struct rte_mempool *mp) } else { printf(" Link Down\n"); } - rte_eth_promiscuous_enable(portid); + ret = rte_eth_promiscuous_enable(portid); + if (ret != 0) + rte_exit(EXIT_FAILURE, + "rte_eth_promiscuous_enable: err=%s, port=%u\n", + rte_strerror(-ret), portid); /* mark port as initialized */ app_inited_port_mask |= 1u << portid;