X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fip_pipeline%2Fconfig_check.c;h=1ff57637239d9d503845817e96c7f7073446c0e0;hb=bb5b66c613408bbfe661f96b5d39355130faf35d;hp=8052bc40f8ce31e61e75163cf5fcd04a06b93851;hpb=6cec95a597b53eba8a1fdec9e22280573635dd8b;p=dpdk.git diff --git a/examples/ip_pipeline/config_check.c b/examples/ip_pipeline/config_check.c index 8052bc40f8..1ff5763723 100644 --- a/examples/ip_pipeline/config_check.c +++ b/examples/ip_pipeline/config_check.c @@ -98,6 +98,8 @@ check_links(struct app_params *app) n_rxq = app_link_get_n_rxq(app, link); + APP_CHECK((n_rxq), "%s does not have any RXQ\n", link->name); + APP_CHECK((n_rxq == rxq_max + 1), "%s RXQs are not contiguous (B)\n", link->name); @@ -115,6 +117,8 @@ check_links(struct app_params *app) /* Check that link RXQs are contiguous */ n_txq = app_link_get_n_txq(app, link); + APP_CHECK((n_txq), "%s does not have any TXQ\n", link->name); + for (i = 0; i < n_txq; i++) { char name[APP_PARAM_NAME_SIZE]; int pos;