From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Qiu, Michael" Subject: Re: [PATCH] librte_pmd_fm10k: Fix max_vfs issue in fm10k PMD Date: Tue, 12 May 2015 05:30:49 +0000 Message-ID: <533710CFB86FA344BFBF2D6802E602860466E23B@SHSMSX101.ccr.corp.intel.com> References: <1429003502-20783-1-git-send-email-qiudayu@cn.ibm.com> <4341B239C0EFF9468EE453F9E9F4604D016BC71B@shsmsx102.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable To: "Chen, Jing D" , Michael Qiu , "dev@dpdk.org" , "thomas.monjalon@6wind.com" Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id A94C0234 for ; Tue, 12 May 2015 07:30:54 +0200 (CEST) Content-Language: en-US List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi, thomas=0A= =0A= What about this patch?=0A= =0A= Thanks,=0A= Michael=0A= On 4/16/2015 4:09 PM, Chen, Jing D wrote:=0A= > Hi, =0A= >=0A= >> -----Original Message-----=0A= >> From: Michael Qiu [mailto:qiudayu@cn.ibm.com]=0A= >> Sent: Tuesday, April 14, 2015 5:25 PM=0A= >> To: dev@dpdk.org=0A= >> Cc: Chen, Jing D; Qiu, Michael=0A= >> Subject: [PATCH] librte_pmd_fm10k: Fix max_vfs issue in fm10k PMD=0A= >>=0A= >> From: Michael Qiu =0A= >>=0A= >> In DPDK, max_vfs means vf numbers created, not the max number vfs=0A= >> the device supported.=0A= >>=0A= >> Signed-off-by: Michael Qiu =0A= >> ---=0A= >> lib/librte_pmd_fm10k/fm10k_ethdev.c | 2 +-=0A= >> 1 file changed, 1 insertion(+), 1 deletion(-)=0A= >>=0A= >> diff --git a/lib/librte_pmd_fm10k/fm10k_ethdev.c=0A= >> b/lib/librte_pmd_fm10k/fm10k_ethdev.c=0A= >> index 0312fad..297ff88 100644=0A= >> --- a/lib/librte_pmd_fm10k/fm10k_ethdev.c=0A= >> +++ b/lib/librte_pmd_fm10k/fm10k_ethdev.c=0A= >> @@ -770,7 +770,7 @@ fm10k_dev_infos_get(struct rte_eth_dev *dev,=0A= >> dev_info->max_tx_queues =3D hw->mac.max_queues;=0A= >> dev_info->max_mac_addrs =3D 1;=0A= >> dev_info->max_hash_mac_addrs =3D 0;=0A= >> - dev_info->max_vfs =3D FM10K_MAX_VF_NUM;=0A= >> + dev_info->max_vfs =3D dev->pci_dev->max_vfs;=0A= >> dev_info->max_vmdq_pools =3D ETH_64_POOLS;=0A= >> dev_info->rx_offload_capa =3D=0A= >> DEV_RX_OFFLOAD_IPV4_CKSUM |=0A= >> --=0A= >> 1.9.3=0A= > Acked-by Jing Chen =0A= >=0A= >=0A= =0A=