[dpdk-dev] librte_pmd_fm10k: Fix max_vfs issue in fm10k PMD

Message ID 1433212128-21188-1-git-send-email-michael.qiu@intel.com (mailing list archive)
State Accepted, archived
Headers

Commit Message

Michael Qiu June 2, 2015, 2:28 a.m. UTC
  In DPDK, max_vfs means vf numbers created, not the max number vfs
the device supported.

Signed-off-by: Michael Qiu <michael.qiu@intel.com>
Acked-by Jing Chen <jing.d.chen@intel.com>
---
 lib/librte_pmd_fm10k/fm10k_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Thomas Monjalon June 2, 2015, 4:06 p.m. UTC | #1
2015-06-02 10:28, Michael Qiu:
> In DPDK, max_vfs means vf numbers created, not the max number vfs
> the device supported.
> 
> Signed-off-by: Michael Qiu <michael.qiu@intel.com>
> Acked-by Jing Chen <jing.d.chen@intel.com>

Applied, thanks
  

Patch

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 |