From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 710F75A35 for ; Thu, 21 May 2015 03:15:25 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 20 May 2015 18:15:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,466,1427785200"; d="scan'208";a="729343921" Received: from pgsmsx101.gar.corp.intel.com ([10.221.44.78]) by fmsmga002.fm.intel.com with ESMTP; 20 May 2015 18:15:23 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by PGSMSX101.gar.corp.intel.com (10.221.44.78) with Microsoft SMTP Server (TLS) id 14.3.224.2; Thu, 21 May 2015 09:15:23 +0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.94]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.23]) with mapi id 14.03.0224.002; Thu, 21 May 2015 09:15:22 +0800 From: "Zhang, Helin" To: "Liu, Jijiang" , "dev@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] i40e:fix an issue in i40e_dev_info_get Thread-Index: AQHQkfiQobL4xV79dU+K913+aUhJR52FoxwQ Date: Thu, 21 May 2015 01:15:20 +0000 Message-ID: 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:15:25 -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 Acked-by: Helin Zhang >=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