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 188181DA4 for ; Tue, 22 May 2018 18:37:44 +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 fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 May 2018 09:37:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,430,1520924400"; d="scan'208";a="58104198" Received: from silpixa00399777.ir.intel.com (HELO silpixa00399777.ger.corp.intel.com) ([10.237.222.236]) by orsmga001.jf.intel.com with ESMTP; 22 May 2018 09:37:42 -0700 From: Ferruh Yigit To: Wenzhuo Lu , Jingjing Wu Cc: dev@dpdk.org, Ferruh Yigit , Qi Zhang , Bernard Iremonger Date: Tue, 22 May 2018 17:37:20 +0100 Message-Id: <20180522163720.58482-1-ferruh.yigit@intel.com> X-Mailer: git-send-email 2.14.3 Subject: [dpdk-dev] [PATCH] app/testpmd: fix descriptor number for Rx queue setup 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, 22 May 2018 16:37:45 -0000 Wrong index used to select descriptor number, causing setting up queue with wrong number of descriptors. Fixes: d44f8a485f5d ("app/testpmd: enable per queue configure") Signed-off-by: Ferruh Yigit --- Cc: Qi Zhang Cc: 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 cfa6da60c..5f8f88449 100644 --- a/app/test-pmd/testpmd.c +++ b/app/test-pmd/testpmd.c @@ -1689,7 +1689,7 @@ start_port(portid_t pid) } diag = rte_eth_rx_queue_setup(pi, qi, - port->nb_rx_desc[pi], + port->nb_rx_desc[qi], rxring_numa[pi], &(port->rx_conf[qi]), mp); @@ -1704,7 +1704,7 @@ start_port(portid_t pid) return -1; } diag = rte_eth_rx_queue_setup(pi, qi, - port->nb_rx_desc[pi], + port->nb_rx_desc[qi], port->socket_id, &(port->rx_conf[qi]), mp); -- 2.14.3