From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id A26E7108A for ; Wed, 8 Mar 2017 00:46:48 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Mar 2017 15:46:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,260,1486454400"; d="scan'208";a="1139256864" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga002.fm.intel.com with ESMTP; 07 Mar 2017 15:46:47 -0800 Received: from fmsmsx154.amr.corp.intel.com (10.18.116.70) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 7 Mar 2017 15:46:47 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX154.amr.corp.intel.com (10.18.116.70) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 7 Mar 2017 15:46:46 -0800 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.20]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.132]) with mapi id 14.03.0248.002; Wed, 8 Mar 2017 07:46:45 +0800 From: "Wu, Jingjing" To: "stable@dpdk.org" Thread-Topic: [DPDK 2/4] app/testpmd: fix init config for multi-queue mode Thread-Index: AQHSl5yIeGAH/029D06OFsOfOQj7qaGKCuEQ Date: Tue, 7 Mar 2017 23:46:45 +0000 Message-ID: <9BB6961774997848B5B42BEC655768F810CED724@SHSMSX103.ccr.corp.intel.com> References: <1488930010-85539-1-git-send-email-jingjing.wu@intel.com> <1488930010-85539-2-git-send-email-jingjing.wu@intel.com> In-Reply-To: <1488930010-85539-2-git-send-email-jingjing.wu@intel.com> 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-stable] [DPDK 2/4] app/testpmd: fix init config for multi-queue mode X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Mar 2017 23:46:49 -0000 resend by mistake, drop this. > -----Original Message----- > From: Wu, Jingjing > Sent: Wednesday, March 8, 2017 7:40 AM > To: qabuild > Cc: Wu, Jingjing ; stable@dpdk.org > Subject: [DPDK 2/4] app/testpmd: fix init config for multi-queue mode >=20 > In SRIOV mode, the mq_mode of rte_eth_rxmode should not carry VMDQ info > without rx_adv_conf setting. >=20 > Fixes: a30979f6ad7f ("app/testpmd: set Rx VMDq RSS mode") >=20 > Cc: stable@dpdk.org > Signed-off-by: Jingjing Wu > --- > app/test-pmd/testpmd.c | 13 +------------ > 1 file changed, 1 insertion(+), 12 deletions(-) >=20 > diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c index > bfb2f8e..f695807 100644 > --- a/app/test-pmd/testpmd.c > +++ b/app/test-pmd/testpmd.c > @@ -1835,24 +1835,13 @@ init_port_config(void) > port->dev_conf.rx_adv_conf.rss_conf.rss_hf =3D 0; > } >=20 > - if (port->dcb_flag =3D=3D 0 && port->dev_info.max_vfs =3D=3D 0) { > + if (port->dcb_flag =3D=3D 0) { > if( port->dev_conf.rx_adv_conf.rss_conf.rss_hf !=3D 0) > port->dev_conf.rxmode.mq_mode =3D > ETH_MQ_RX_RSS; > else > port->dev_conf.rxmode.mq_mode =3D > ETH_MQ_RX_NONE; > } >=20 > - if (port->dev_info.max_vfs !=3D 0) { > - if (port->dev_conf.rx_adv_conf.rss_conf.rss_hf !=3D 0) > - port->dev_conf.rxmode.mq_mode =3D > - ETH_MQ_RX_VMDQ_RSS; > - else > - port->dev_conf.rxmode.mq_mode =3D > - ETH_MQ_RX_NONE; > - > - port->dev_conf.txmode.mq_mode =3D > ETH_MQ_TX_NONE; > - } > - > rxtx_port_config(port); >=20 > rte_eth_macaddr_get(pid, &port->eth_addr); > -- > 2.4.11