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 00773A0548; Sun, 25 Apr 2021 04:08:21 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DEE944068C; Sun, 25 Apr 2021 04:08:21 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 471ED4068C for ; Sun, 25 Apr 2021 04:08:20 +0200 (CEST) IronPort-SDR: Qe0NZe5o8VpgqgbN8/zdG0OMO2mTdRxC56a9oIpnv1PKsYT+Z7nPEVXcuYPntQknxHhqJbsmLz w8XfKDNjBoKQ== X-IronPort-AV: E=McAfee;i="6200,9189,9964"; a="175690483" X-IronPort-AV: E=Sophos;i="5.82,249,1613462400"; d="scan'208";a="175690483" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2021 19:08:18 -0700 IronPort-SDR: pjoh0kAfV4DjuxBnilgEuJw1Qbsuky9K3IEIvX2Rwk3bu/OTMiM774lFAxfFuwDDGcwKcSCdbn EngguXB6EvEA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,249,1613462400"; d="scan'208";a="456682778" Received: from orsmsx606.amr.corp.intel.com ([10.22.229.19]) by fmsmga002.fm.intel.com with ESMTP; 24 Apr 2021 19:08:18 -0700 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Sat, 24 Apr 2021 19:08:17 -0700 Received: from orsmsx602.amr.corp.intel.com (10.22.229.15) by ORSMSX609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Sat, 24 Apr 2021 19:08:17 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2 via Frontend Transport; Sat, 24 Apr 2021 19:08:17 -0700 Received: from NAM04-BN3-obe.outbound.protection.outlook.com (104.47.46.58) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2106.2; Sat, 24 Apr 2021 19:08:16 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m52Q2YQXGhAzoeqo82VJeQqlevoxjJQo4KYWL5MMN+iFspSZI8MoagNX/Z5CKUXbVzTEJPARwex8SMEVv1DJWt5cYUWJIDwNt5s6w9W7+hwz6fjMgK0mpD8Z/uaviy7zOLDPP41Vq5117VBUpVMvytERsMpa9Mmks9Zv4Q9pSl/3avKxzsPvIQnk+ds5rb/ZP+0T81IPTEnomS41YW7Ba8ZH5Ys9KrIRUB0Up/q5U3SrHjMpbvARcIJb1eWtSKdYPNyEsGL3n3qTuocBzJrrescP6xG1Ri3Sd2GRbQ8SNXio663Tq1p8TOQGLSHQ4/x3mzZfYVJ7w9HAI5KzKAyyJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qW/6/7k0XKFelv5aosAL/Kqvm3YVqxAeERkHnVEdwCM=; b=jvEpEu/3U3yJOauSw9zPcs/WnoLS9wnJoGlgnFFhqy8LT7iUv4pJQiA0pJ03qDtxiEohz6Ti/cORHOzotTvpEKhP5M6iwMc+Ao/+kKyTpPs5Isv8K9pXjT2zJiUersWc+Sd6EA/xwLmA2Fu9TZex4P4ZwmglxY3PNNmExDv82Fa+Ifajfse8NKKlTyWhGCL6hu/mpguby/CwhFIQ720yvP7HJ2QESg/LqZsJ1Lx0SjTfIfamH86yNtsYM8ZNuY8wB01BLRitDflG/SnwKsAX8qC+pZfeDwrE52tvVVoMpE1d3fcok6zEELwTgKo5krC3RVPIeZqIzLF/FFsDe1nR7Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qW/6/7k0XKFelv5aosAL/Kqvm3YVqxAeERkHnVEdwCM=; b=KD/uclU2eFFc6x1KL83nCQqPJx4j4NbZUkyckOpcbos8jBitHT6FRAT3xKPczobBHTgla/IZYrKg54753GgKB8QSGM4hHlpbMEgixmmNTaiu9l2/OyAzqOE1smEeZBibYw0zRvNKNCrRR7pHi9OzgGLipSKpTVJ5ENPfh4LXaDE= Received: from DM4PR11MB5534.namprd11.prod.outlook.com (2603:10b6:5:391::22) by DM6PR11MB4252.namprd11.prod.outlook.com (2603:10b6:5:201::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.21; Sun, 25 Apr 2021 02:08:13 +0000 Received: from DM4PR11MB5534.namprd11.prod.outlook.com ([fe80::9034:15e:7cf3:4b78]) by DM4PR11MB5534.namprd11.prod.outlook.com ([fe80::9034:15e:7cf3:4b78%4]) with mapi id 15.20.4065.025; Sun, 25 Apr 2021 02:08:13 +0000 From: "Li, Xiaoyun" To: "Min Hu (Connor)" , "dev@dpdk.org" CC: "Yigit, Ferruh" Thread-Topic: [PATCH 2/2] app/testpmd: fix max queue number when configure Tx offloads Thread-Index: AQHXN0WpAX4IFDVMVE6uUBuGqvN/u6rEgQUA Date: Sun, 25 Apr 2021 02:08:13 +0000 Message-ID: References: <1619075011-11810-1-git-send-email-humin29@huawei.com> <1619075011-11810-3-git-send-email-humin29@huawei.com> In-Reply-To: <1619075011-11810-3-git-send-email-humin29@huawei.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: huawei.com; dkim=none (message not signed) header.d=none;huawei.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.102.204.53] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5902ef36-07a7-47f4-2d30-08d9078efb69 x-ms-traffictypediagnostic: DM6PR11MB4252: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2958; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: SwW5CVySY5sKcDr7spdb3TSlBmbgTWLcSPE9P0XRPn8e8pmwBcn9KyzTyJyT02p/AlUoFsfU64MV8ilUAUAtXGfijtC8A5a1+I1Qy9FSmvgwojgKMYt+YtrqxOoUYWo9FR77AIYK+d60th895EUWBwc5z2ds+DScDmd6fYf4GI/yDZw1NJpJ11J84CyrsAJ1ijQGsdzClzlqUz4SZL55Um8VrcQ319zS8/RRkPSEUju0E8vP7Y1Cfzdur2eQwqQT5Ij9op3xDZI4R/WevL9YgD80KyDpU/H3XWWTmNJdkALgtcfCaXmxlebWGeyUIfIVnjDQMsf9NbJbFVrHIDeKhuCxouhvVEuRnDAQrrILmRYhNqPK/XHkGfK2sry4RYgpc+o7KBGhtasGqQHwJvCRZEmNPy7FEv04Z9KQwMhUk3/oVr+PyWgCNEjEWvCffyWuDRybBgwY8KThbkG5ODhj4k8ZVj9+6COydKlKXnFhy3wYJgjL/R9IalF01IRYeMEZd2UjxOWBT7GPNLaAJfaIg1bqgGgCuPLRqR1+sEu3rbdD93ntV3yhOd3zDNuUv1x8YWriqWzx3gDTNDAmZ1csTZRk0IpFK0MeT+ceAUwJvrg= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB5534.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(39860400002)(396003)(346002)(136003)(376002)(366004)(66556008)(107886003)(5660300002)(66476007)(66446008)(64756008)(316002)(478600001)(2906002)(66946007)(4326008)(86362001)(76116006)(186003)(38100700002)(71200400001)(55016002)(26005)(122000001)(8676002)(8936002)(6506007)(83380400001)(33656002)(7696005)(52536014)(53546011)(110136005)(9686003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?CZ/MCTWx72PGR+MVOYqiiDhalhmWhO4CYSFUJLuhVc43twlZrxndLO4goNcs?= =?us-ascii?Q?t2h7uBaAnqa7Xt0jBFpriw8rabA7/Eo9P4jUbt6cMLwSyuZT4aGM2DT7Unp3?= =?us-ascii?Q?Rck4YHhyuAD4DW6dc8b2F2r6kuOePMe98z3EgSJqlUm/r5LvObDv7B8ILB9n?= =?us-ascii?Q?yhDxG/XrDZGdCtxWba/owc7IgAd7/ME4eguoatvVhW89By0JrwogtFYajFm7?= =?us-ascii?Q?NKNismA3vP/HOVHnCudyvb7Fpb9PQgaUpzbY55MpAAjA3A1MDnFcoRbwT37/?= =?us-ascii?Q?xnGBAxK/Rrhmrn+bjCA4qoj1QR2JpdHoxaSz4K7Kc9E3dBg7lsicPZv8lAQP?= =?us-ascii?Q?8wj2q8o1FoRvPLb5yz5dVawh9aXrpYi8aWWDNL4q4XR/OP6Uk43YdseQi1Or?= =?us-ascii?Q?yoRhFs53mwpN20si9w5nX64uBOjHP6jpQBlSNgHWqfSr3Kd6awSlflXOT20Q?= =?us-ascii?Q?gKglQVthYNpLQ6Xe0fqpoWtVcBL/DQ3Yn+AlnA7HTyAbyCWRuiDeLJ41qoD4?= =?us-ascii?Q?yBrD7fxEgr8yJP8efHAOHHxHLOLinYxuEWeFGRHMzPYVrV7P1S/s/rIW08Cl?= =?us-ascii?Q?JngXyqd9crOETkNqDdPP3f4ynxGpysqVpW3mBIPdL+NqVrSbkZ5U9p4M7aCw?= =?us-ascii?Q?55F0Z7fqXEee1HPT7UwLy70TqW0SqxmYqv3MT0xAypqwye7Ua72PoWUl7NdJ?= =?us-ascii?Q?jBUVxCimvoqi+DMOYezCGKtpAziflaampMB7toaxveuRN/6DZv8oWzaao2lP?= =?us-ascii?Q?BKZe2VinryT+S36Do0BtrWDyK9IfE8an1DMPzdg6+BdBLvhZfUNrRyjp0nWZ?= =?us-ascii?Q?odZHz9gIieE9M1xbdNnFuC7YrFr9gRQqeWz2rslBSdaPuM2BU4U2zDwN14N5?= =?us-ascii?Q?/Yvx/F+6BVsEYW+qc+jj0FwozWJXr5BBNI68hj0umroB3J5L8TxjzLme1QG0?= =?us-ascii?Q?jaUf/BK/puIsG3rlJXXy/LO2TbNPRaIbcSWWbHE2i781PqeWpJguV1FmkfC8?= =?us-ascii?Q?/V+E3wz4epEvKeTKahnLZ7jVw1nYjqbHj896tH7qUoNFbjDfDG3rCiV9j3LX?= =?us-ascii?Q?m+Ls7xHVxchvyYFU30zDEOhL018AhInNCPUPyB3SaS74RUk7FQ3BR5mrpKI5?= =?us-ascii?Q?R5N8nDQX7drdC7jaVABEdGEHix8dkDZncHkwn7FjWt1ifYtRuqba7QgMz3Oo?= =?us-ascii?Q?Ak9Gl86J8xpV8ZFkYaPOGghuTVotSgTU3KBeZnCrX5l2B8t/9cDBwgEeITTT?= =?us-ascii?Q?l57ER6sS288hCPyL/p0Q/w99wNSzjxcFcqpFbo0p+vr/5gizCM/S+FOuAksg?= =?us-ascii?Q?GrfMxwDmEJTPL2ckYyT6VumE?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB5534.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5902ef36-07a7-47f4-2d30-08d9078efb69 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Apr 2021 02:08:13.2966 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: uQQt7BVpZURmUJsodz8USw6mIh3kbPGUzNV2A/MVmoB10WE2kEctwPGorZbCvHOtQpSDNUlSjiBAYLT8z0qiNQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR11MB4252 X-OriginatorOrg: intel.com 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" > -----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 >=20 > From: Chengchang Tang >=20 > When txq offload is configured, max rxq is used as the max queue. This pa= tch > fixes it. >=20 > Fixes: 74453ac9ef67 ("app/testpmd: fix queue offload configuration") > Cc: stable@dpdk.org >=20 > Signed-off-by: Chengchang Tang > Signed-off-by: Min Hu (Connor) > --- > app/test-pmd/cmdline.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > 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; >=20 > /* Apply queue tx offloads configuration */ > - for (k =3D 0; k < port->dev_info.max_rx_queues; k++) > + for (k =3D 0; k < port->dev_info.max_tx_queues; k++) > port->tx_conf[k].offloads =3D > port->dev_conf.txmode.offloads; > } > -- > 2.7.4 Acked-by: Xiaoyun Li