From bbd8a6f64a352ff38a1ead768658ef935edbddc2 Mon Sep 17 00:00:00 2001 From: Michael Qiu Date: Tue, 2 Jun 2015 10:28:48 +0800 Subject: [PATCH] fm10k: fix maximum VF number In DPDK, max_vfs means vf numbers created, not the max number vfs the device supported. Signed-off-by: Michael Qiu Acked-by: Jing Chen --- drivers/net/fm10k/fm10k_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/fm10k/fm10k_ethdev.c b/drivers/net/fm10k/fm10k_ethdev.c index 275c19ccd2..87852edec1 100644 --- a/drivers/net/fm10k/fm10k_ethdev.c +++ b/drivers/net/fm10k/fm10k_ethdev.c @@ -760,7 +760,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 | -- 2.20.1