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 E5CE55A35 for ; Thu, 21 May 2015 03:50:48 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP; 20 May 2015 18:50:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,466,1427785200"; d="scan'208";a="732800783" Received: from pgsmsx104.gar.corp.intel.com ([10.221.44.91]) by orsmga002.jf.intel.com with ESMTP; 20 May 2015 18:50:46 -0700 Received: from kmsmsx154.gar.corp.intel.com (172.21.73.14) by PGSMSX104.gar.corp.intel.com (10.221.44.91) with Microsoft SMTP Server (TLS) id 14.3.224.2; Thu, 21 May 2015 09:50:46 +0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.110.14) by KMSMSX154.gar.corp.intel.com (172.21.73.14) with Microsoft SMTP Server (TLS) id 14.3.224.2; Thu, 21 May 2015 09:50:45 +0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.109]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.23]) with mapi id 14.03.0224.002; Thu, 21 May 2015 09:50:44 +0800 From: "Chen, Jing D" To: "Liu, Jijiang" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] i40e:fix an issue in i40e_dev_info_get Thread-Index: AQHQkfiQcPRyVu1JS0WPDbcmwpSUV52FrNoA Date: Thu, 21 May 2015 01:50:43 +0000 Message-ID: <4341B239C0EFF9468EE453F9E9F4604D016F34DF@shsmsx102.ccr.corp.intel.com> References: <1432014939-29800-1-git-send-email-jijiang.liu@intel.com> In-Reply-To: <1432014939-29800-1-git-send-email-jijiang.liu@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-dev] [PATCH] i40e:fix an issue in i40e_dev_info_get X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 May 2015 01:50:49 -0000 > -----Original Message----- > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Jijiang Liu > Sent: Tuesday, May 19, 2015 1:56 PM > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH] i40e:fix an issue in i40e_dev_info_get >=20 > To get device VMDQ info when only i40e VMDQ feature is enabled. >=20 > Signed-off-by: Jijiang Liu >=20 > --- > lib/librte_pmd_i40e/i40e_ethdev.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) >=20 > diff --git a/lib/librte_pmd_i40e/i40e_ethdev.c > b/lib/librte_pmd_i40e/i40e_ethdev.c > index 96700e4..1faae83 100644 > --- a/lib/librte_pmd_i40e/i40e_ethdev.c > +++ b/lib/librte_pmd_i40e/i40e_ethdev.c > @@ -1565,7 +1565,7 @@ i40e_dev_info_get(struct rte_eth_dev *dev, struct > rte_eth_dev_info *dev_info) > ETH_TXQ_FLAGS_NOOFFLOADS, > }; >=20 > - if (pf->flags | I40E_FLAG_VMDQ) { > + if (pf->flags & I40E_FLAG_VMDQ) { > dev_info->max_vmdq_pools =3D pf->max_nb_vmdq_vsi; > dev_info->vmdq_queue_base =3D dev_info->max_rx_queues; > dev_info->vmdq_queue_num =3D pf->vmdq_nb_qps * > -- > 1.7.7.6 Acked-by: Jing Chen