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 502A6B6AB for ; Thu, 16 Apr 2015 10:09:32 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 16 Apr 2015 01:09:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,586,1422950400"; d="scan'208";a="710026264" Received: from pgsmsx107.gar.corp.intel.com ([10.221.44.105]) by fmsmga002.fm.intel.com with ESMTP; 16 Apr 2015 01:09:30 -0700 Received: from kmsmsx154.gar.corp.intel.com (172.21.73.14) by PGSMSX107.gar.corp.intel.com (10.221.44.105) with Microsoft SMTP Server (TLS) id 14.3.224.2; Thu, 16 Apr 2015 16:09:18 +0800 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by KMSMSX154.gar.corp.intel.com (172.21.73.14) with Microsoft SMTP Server (TLS) id 14.3.224.2; Thu, 16 Apr 2015 16:09:18 +0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.223]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.24]) with mapi id 14.03.0224.002; Thu, 16 Apr 2015 16:09:17 +0800 From: "Chen, Jing D" To: Michael Qiu , "dev@dpdk.org" Thread-Topic: [PATCH] librte_pmd_fm10k: Fix max_vfs issue in fm10k PMD Thread-Index: AQHQdpTw2AUSP6RbF02muP+O83I+gp1PS9uA Date: Thu, 16 Apr 2015 08:09:16 +0000 Message-ID: <4341B239C0EFF9468EE453F9E9F4604D016BC71B@shsmsx102.ccr.corp.intel.com> References: <1429003502-20783-1-git-send-email-qiudayu@cn.ibm.com> In-Reply-To: <1429003502-20783-1-git-send-email-qiudayu@cn.ibm.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] librte_pmd_fm10k: Fix max_vfs issue in fm10k PMD 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, 16 Apr 2015 08:09:32 -0000 Hi,=20 > -----Original Message----- > From: Michael Qiu [mailto:qiudayu@cn.ibm.com] > Sent: Tuesday, April 14, 2015 5:25 PM > To: dev@dpdk.org > Cc: Chen, Jing D; Qiu, Michael > Subject: [PATCH] librte_pmd_fm10k: Fix max_vfs issue in fm10k PMD >=20 > From: Michael Qiu >=20 > In DPDK, max_vfs means vf numbers created, not the max number vfs > the device supported. >=20 > Signed-off-by: Michael Qiu > --- > lib/librte_pmd_fm10k/fm10k_ethdev.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/lib/librte_pmd_fm10k/fm10k_ethdev.c > b/lib/librte_pmd_fm10k/fm10k_ethdev.c > index 0312fad..297ff88 100644 > --- a/lib/librte_pmd_fm10k/fm10k_ethdev.c > +++ b/lib/librte_pmd_fm10k/fm10k_ethdev.c > @@ -770,7 +770,7 @@ fm10k_dev_infos_get(struct rte_eth_dev *dev, > dev_info->max_tx_queues =3D hw->mac.max_queues; > dev_info->max_mac_addrs =3D 1; > dev_info->max_hash_mac_addrs =3D 0; > - dev_info->max_vfs =3D FM10K_MAX_VF_NUM; > + dev_info->max_vfs =3D dev->pci_dev->max_vfs; > dev_info->max_vmdq_pools =3D ETH_64_POOLS; > dev_info->rx_offload_capa =3D > DEV_RX_OFFLOAD_IPV4_CKSUM | > -- > 1.9.3 Acked-by Jing Chen