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 84285324D for ; Tue, 19 Dec 2017 08:18:23 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Dec 2017 23:18:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,425,1508828400"; d="scan'208";a="13506406" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga003.jf.intel.com with ESMTP; 18 Dec 2017 23:18:22 -0800 Received: from fmsmsx125.amr.corp.intel.com (10.18.125.40) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 18 Dec 2017 23:18:21 -0800 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX125.amr.corp.intel.com (10.18.125.40) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 18 Dec 2017 23:18:21 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.213]) by shsmsx102.ccr.corp.intel.com ([169.254.2.175]) with mapi id 14.03.0319.002; Tue, 19 Dec 2017 15:18:19 +0800 From: "Zhang, Helin" To: zhouyangchao , "dev@dpdk.org" CC: "Lu, Wenzhuo" Thread-Topic: [dpdk-dev] [PATCH] igb: fix Tx queue number Thread-Index: AQHTaLzs5XcRZMSHQEGFQRXvlklXpaNKYUrw Date: Tue, 19 Dec 2017 07:18:19 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] 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 07:18:23 -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 Basically please follow the style of 'net/igb:', thanks! /Helin >=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 > --- > 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_ethde= v.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