From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 5540E5A1F for ; Mon, 7 Sep 2015 14:53:59 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP; 07 Sep 2015 05:53:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,485,1437462000"; d="scan'208";a="764066959" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga001.jf.intel.com with ESMTP; 07 Sep 2015 05:53:57 -0700 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id t87CrumW008505; Mon, 7 Sep 2015 13:53:56 +0100 Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id t87Cru3i014195; Mon, 7 Sep 2015 13:53:56 +0100 Received: (from jasvinde@localhost) by sivswdev02.ir.intel.com with id t87Crt3G014191; Mon, 7 Sep 2015 13:53:55 +0100 From: Jasvinder Singh To: dev@dpdk.org Date: Mon, 7 Sep 2015 13:53:55 +0100 Message-Id: <1441630435-14158-1-git-send-email-jasvinder.singh@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dpdk-dev] [PATCH] ip_pipeline: add check on nic's rxq and txq X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Sep 2015 12:53:59 -0000 This patch checks that rx queue and tx queue of each link specified in ip pipeline configuration file are used. Signed-off-by: Jasvinder Singh --- examples/ip_pipeline/config_check.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/ip_pipeline/config_check.c b/examples/ip_pipeline/config_check.c index 07f4c8b..b843926 100644 --- a/examples/ip_pipeline/config_check.c +++ b/examples/ip_pipeline/config_check.c @@ -95,6 +95,8 @@ check_links(struct app_params *app) "%s RXQs are not contiguous (A)\n", link->name); 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); @@ -112,7 +114,9 @@ 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.1.0