From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] librte_pmd_fm10k: Fix max_vfs issue in fm10k PMD Date: Mon, 01 Jun 2015 15:46:10 +0200 Message-ID: <1870284.i6UZF4OMEr@xps13> References: <1429003502-20783-1-git-send-email-qiudayu@cn.ibm.com> <4341B239C0EFF9468EE453F9E9F4604D016BC71B@shsmsx102.ccr.corp.intel.com> <533710CFB86FA344BFBF2D6802E602860466E23B@SHSMSX101.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Michael Qiu To: "Qiu, Michael" Return-path: Received: from mail-wg0-f49.google.com (mail-wg0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id DDB885693 for ; Mon, 1 Jun 2015 15:47:01 +0200 (CEST) Received: by wgv5 with SMTP id 5so114883452wgv.1 for ; Mon, 01 Jun 2015 06:47:01 -0700 (PDT) In-Reply-To: <533710CFB86FA344BFBF2D6802E602860466E23B@SHSMSX101.ccr.corp.intel.com> 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" 2015-05-12 05:30, Qiu, Michael: > Hi, thomas > > What about this patch? It seems this patch was not *really* sent to dev@dpdk.org. Please re-send, keeping the Acked-by line. > On 4/16/2015 4:09 PM, Chen, Jing D wrote: > > From: Michael Qiu [mailto:qiudayu@cn.ibm.com] > >> From: Michael Qiu > >> > >> In DPDK, max_vfs means vf numbers created, not the max number vfs > >> the device supported. > >> > >> Signed-off-by: Michael Qiu > >> --- > >> lib/librte_pmd_fm10k/fm10k_ethdev.c | 2 +- > >> 1 file changed, 1 insertion(+), 1 deletion(-) > >> > >> 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 = hw->mac.max_queues; > >> dev_info->max_mac_addrs = 1; > >> dev_info->max_hash_mac_addrs = 0; > >> - dev_info->max_vfs = FM10K_MAX_VF_NUM; > >> + dev_info->max_vfs = dev->pci_dev->max_vfs; > >> dev_info->max_vmdq_pools = ETH_64_POOLS; > >> dev_info->rx_offload_capa = > >> DEV_RX_OFFLOAD_IPV4_CKSUM | > >> -- > >> 1.9.3 > > Acked-by Jing Chen