From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jasvinder Singh Subject: [PATCH v2] ip_pipeline: add check on nic's rxq and txq Date: Tue, 1 Dec 2015 12:23:59 +0000 Message-ID: <1448972639-13229-1-git-send-email-jasvinder.singh@intel.com> References: <1441630435-14158-1-git-send-email-jasvinder.singh@intel.com> To: dev@dpdk.org Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 932D7FE5 for ; Tue, 1 Dec 2015 13:24:02 +0100 (CET) In-Reply-To: <1441630435-14158-1-git-send-email-jasvinder.singh@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch checks that rx queue and tx queue of each link specified in ip pipeline configuration file are used. *v2 - fix checkpatch warnings Signed-off-by: Jasvinder Singh Acked-by: Cristian Dumitrescu --- examples/ip_pipeline/config_check.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/ip_pipeline/config_check.c b/examples/ip_pipeline/config_check.c index 8052bc4..1ff5763 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; -- 2.5.0