From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 3B9501B835 for ; Tue, 15 May 2018 18:24:31 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 May 2018 09:24:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,403,1520924400"; d="scan'208";a="56126278" Received: from sivswdev02.ir.intel.com (HELO localhost.localdomain) ([10.237.217.46]) by orsmga001.jf.intel.com with ESMTP; 15 May 2018 09:24:28 -0700 From: Bernard Iremonger To: dev@dpdk.org, ferruh.yigit@intel.com Cc: Bernard Iremonger Date: Tue, 15 May 2018 17:24:24 +0100 Message-Id: <1526401464-4786-1-git-send-email-bernard.iremonger@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: References: Subject: [dpdk-dev] [PATCH] app/test-pmd: fix testpmd log of start command X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 May 2018 16:24:31 -0000 In the testpmd log of the start command, show the RX and TX descriptor values from dev_info instead of the default values. Fixes: d44f8a485f5d ("app/testpmd: enable per queue configure") Reported-by: Ferruh Yigit Signed-off-by: Bernard Iremonger --- app/test-pmd/testpmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index 1344016..5b00f7f 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -2308,7 +2308,7 @@ struct pmd_test_command { if (rx_drop_en != RTE_PMD_PARAM_UNSET) port->rx_conf[qid].rx_drop_en = rx_drop_en; - port->nb_rx_desc[qid] = nb_rxd; + port->nb_rx_desc[qid] = port->dev_info.rx_desc_lim.nb_max; } for (qid = 0; qid < nb_txq; qid++) { @@ -2330,7 +2330,7 @@ struct pmd_test_command { if (tx_free_thresh != RTE_PMD_PARAM_UNSET) port->tx_conf[qid].tx_free_thresh = tx_free_thresh; - port->nb_tx_desc[qid] = nb_txd; + port->nb_tx_desc[qid] = port->dev_info.tx_desc_lim.nb_max; } } -- 1.9.1