From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 63BFFA0548; Mon, 26 Apr 2021 16:21:18 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4531941110; Mon, 26 Apr 2021 16:21:18 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 1149741104 for ; Mon, 26 Apr 2021 16:21:15 +0200 (CEST) IronPort-SDR: 8mDs98DiNooD7j6OxArOJhdzXM/zLjfW19TqarucSSXEkh5I0aPSTKm7k6R5IO0XY4OgJRMgvZ FHDG4hni7GNg== X-IronPort-AV: E=McAfee;i="6200,9189,9966"; a="196453269" X-IronPort-AV: E=Sophos;i="5.82,252,1613462400"; d="scan'208";a="196453269" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2021 07:21:14 -0700 IronPort-SDR: hjtQItRiG7LNR9O4VWI9KNry2Hev1AxHoDMgMsdUWXqTOuqHGw0Jr39buUhxmPM/01sKWGV0w9 UULvukTbRUmg== X-IronPort-AV: E=Sophos;i="5.82,252,1613462400"; d="scan'208";a="402937944" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.213.240.23]) ([10.213.240.23]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2021 07:21:13 -0700 To: "Li, Xiaoyun" , "Min Hu (Connor)" , "dev@dpdk.org" References: <1619075011-11810-1-git-send-email-humin29@huawei.com> <1619075011-11810-3-git-send-email-humin29@huawei.com> From: Ferruh Yigit X-User: ferruhy Message-ID: Date: Mon, 26 Apr 2021 15:21:09 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 2/2] app/testpmd: fix max queue number when configure Tx offloads X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 4/25/2021 3:08 AM, Li, Xiaoyun wrote: > >> -----Original Message----- >> From: Min Hu (Connor) >> Sent: Thursday, April 22, 2021 15:04 >> To: dev@dpdk.org >> Cc: Yigit, Ferruh ; Li, Xiaoyun >> Subject: [PATCH 2/2] app/testpmd: fix max queue number when configure Tx >> offloads >> >> From: Chengchang Tang >> >> When txq offload is configured, max rxq is used as the max queue. This patch >> fixes it. >> >> Fixes: 74453ac9ef67 ("app/testpmd: fix queue offload configuration") >> Cc: stable@dpdk.org >> >> Signed-off-by: Chengchang Tang >> Signed-off-by: Min Hu (Connor) >> --- >> app/test-pmd/cmdline.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index >> f0fa6e8..1cb1027 100644 >> --- a/app/test-pmd/cmdline.c >> +++ b/app/test-pmd/cmdline.c >> @@ -4666,7 +4666,7 @@ cmd_config_queue_tx_offloads(struct rte_port *port) >> int k; >> >> /* Apply queue tx offloads configuration */ >> -for (k = 0; k < port->dev_info.max_rx_queues; k++) >> +for (k = 0; k < port->dev_info.max_tx_queues; k++) >> port->tx_conf[k].offloads = >> port->dev_conf.txmode.offloads; >> } >> -- >> 2.7.4 > > Acked-by: Xiaoyun Li > Applied to dpdk-next-net/main, thanks.