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 A94C0234 for ; Tue, 12 May 2015 07:30:54 +0200 (CEST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP; 11 May 2015 22:30:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,412,1427785200"; d="scan'208";a="693459951" Received: from kmsmsx151.gar.corp.intel.com ([172.21.73.86]) by orsmga001.jf.intel.com with ESMTP; 11 May 2015 22:30:52 -0700 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by KMSMSX151.gar.corp.intel.com (172.21.73.86) with Microsoft SMTP Server (TLS) id 14.3.224.2; Tue, 12 May 2015 13:30:51 +0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.107]) by SHSMSX103.ccr.corp.intel.com ([10.239.4.69]) with mapi id 14.03.0224.002; Tue, 12 May 2015 13:30:50 +0800 From: "Qiu, Michael" To: "Chen, Jing D" , Michael Qiu , "dev@dpdk.org" , "thomas.monjalon@6wind.com" Thread-Topic: [PATCH] librte_pmd_fm10k: Fix max_vfs issue in fm10k PMD Thread-Index: AQHQdpTwwWpYa5d5AEWXccWFR+p8Hw== 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> 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: Tue, 12 May 2015 05:30:55 -0000 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=