From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 94B8F1D7 for ; Tue, 19 Dec 2017 13:22:14 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Dec 2017 04:22:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,426,1508828400"; d="scan'208";a="3595241" Received: from kmsmsx151.gar.corp.intel.com ([172.21.73.86]) by fmsmga007.fm.intel.com with ESMTP; 19 Dec 2017 04:22:12 -0800 Received: from pgsmsx112.gar.corp.intel.com ([169.254.3.145]) by KMSMSX151.gar.corp.intel.com ([169.254.10.104]) with mapi id 14.03.0319.002; Tue, 19 Dec 2017 20:22:12 +0800 From: "Dai, Wei" To: zhouyangchao , "dev@dpdk.org" CC: "Lu, Wenzhuo" Thread-Topic: [dpdk-dev] [PATCH] igb: fix Tx queue number Thread-Index: AQHTaLz2yYvLyyHDXU2j3645Gp7Z/6NKtl1g Date: Tue, 19 Dec 2017 12:22:11 +0000 Message-ID: <49759EB36A64CF4892C1AFEC9231E8D65156BDA7@PGSMSX112.gar.corp.intel.com> References: In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMmJkZGRhZmUtYTIyZS00MjMxLTg5NGItYjYwNjA3NzE3MmQ2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IldpaEdsTm5FQWlTNWxPOWs5RnBhXC9ybFduZ3lBTFM5eDE4TXNYN3BxYWtNPSJ9 x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [172.30.20.206] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] igb: fix Tx queue number 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, 19 Dec 2017 12:22:15 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of zhouyangchao > Sent: Wednesday, November 29, 2017 10:50 AM > To: dev@dpdk.org > Cc: Lu, Wenzhuo > Subject: [dpdk-dev] [PATCH] igb: fix Tx queue number >=20 > Internal variable containing the number of TX queues for a device, was be= ing > incorrectly assigned the number of RX queues, instead of TX. >=20 > Fixes: 27b609cbd1c6 ("ethdev: move the multi-queue mode check to specific > drivers") >=20 > Signed-off-by: Yangchao Zhou Acked-by: Wei Dai > --- > drivers/net/e1000/igb_ethdev.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/net/e1000/igb_ethdev.c > b/drivers/net/e1000/igb_ethdev.c index fdc139f..a600fba 100644 > --- a/drivers/net/e1000/igb_ethdev.c > +++ b/drivers/net/e1000/igb_ethdev.c > @@ -1212,7 +1212,7 @@ igb_check_mq_mode(struct rte_eth_dev *dev) > enum rte_eth_rx_mq_mode rx_mq_mode =3D > dev->data->dev_conf.rxmode.mq_mode; > enum rte_eth_tx_mq_mode tx_mq_mode =3D > dev->data->dev_conf.txmode.mq_mode; > uint16_t nb_rx_q =3D dev->data->nb_rx_queues; > - uint16_t nb_tx_q =3D dev->data->nb_rx_queues; > + uint16_t nb_tx_q =3D dev->data->nb_tx_queues; >=20 > if ((rx_mq_mode & ETH_MQ_RX_DCB_FLAG) || > tx_mq_mode =3D=3D ETH_MQ_TX_DCB || > -- > 2.9.0.windows.1 >=20 >=20