From: Harish Patil Date: Fri, 23 Dec 2016 00:48:10 +0000 (-0800) Subject: net/qede: fix reporting PF driver as disabled X-Git-Tag: spdx-start~4924 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b7f714fd757e5dc41990eebf10aff32f3b102eea;p=dpdk.git net/qede: fix reporting PF driver as disabled qede PMD does not support SR-IOV PF driver functionality, so max_vfs is set to 0 to imply the same. Fixes: 2ea6f76aff40 ("qede: add core driver") Signed-off-by: Harish Patil --- diff --git a/drivers/net/qede/qede_ethdev.c b/drivers/net/qede/qede_ethdev.c index 694cbf66c1..b5fa1a2e6a 100644 --- a/drivers/net/qede/qede_ethdev.c +++ b/drivers/net/qede/qede_ethdev.c @@ -977,10 +977,7 @@ qede_dev_info_get(struct rte_eth_dev *eth_dev, dev_info->max_rx_queues = (uint16_t)QEDE_MAX_RSS_CNT(qdev); dev_info->max_tx_queues = dev_info->max_rx_queues; dev_info->max_mac_addrs = qdev->dev_info.num_mac_addrs; - if (IS_VF(edev)) - dev_info->max_vfs = 0; - else - dev_info->max_vfs = (uint16_t)NUM_OF_VFS(&qdev->edev); + dev_info->max_vfs = 0; dev_info->reta_size = ECORE_RSS_IND_TABLE_SIZE; dev_info->hash_key_size = ECORE_RSS_KEY_SIZE * sizeof(uint32_t); dev_info->flow_type_rss_offloads = (uint64_t)QEDE_RSS_OFFLOAD_ALL;