patches for DPDK stable branches
 help / color / mirror / Atom feed
From: Harish Patil <harish.patil@qlogic.com>
To: <ferruh.yigit@intel.com>
Cc: Harish Patil <harish.patil@qlogic.com>, <dev@dpdk.org>,
	<stable@dpdk.org>,  <Dept-EngDPDKDev@cavium.com>
Subject: [dpdk-stable] [PATCH v2 6/7] net/qede: fix reporting of SR-IOV PF driver as disabled
Date: Thu, 22 Dec 2016 16:48:10 -0800	[thread overview]
Message-ID: <1482454091-12819-6-git-send-email-harish.patil@qlogic.com> (raw)
In-Reply-To: <91ac9846-530c-2dd3-4bd6-2c3b9143405b@intel.com>

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 <harish.patil@qlogic.com>
---
 drivers/net/qede/qede_ethdev.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/net/qede/qede_ethdev.c b/drivers/net/qede/qede_ethdev.c
index 00af0f6..93817ac 100644
--- a/drivers/net/qede/qede_ethdev.c
+++ b/drivers/net/qede/qede_ethdev.c
@@ -976,10 +976,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;
-- 
1.7.10.3

  parent reply	other threads:[~2016-12-23  0:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <91ac9846-530c-2dd3-4bd6-2c3b9143405b@intel.com>
2016-12-23  0:48 ` [dpdk-stable] [PATCH v2 2/7] net/qede: fix filtering code Harish Patil
2016-12-23  0:48 ` [dpdk-stable] [PATCH v2 5/7] net/qede: fix RSS related issue Harish Patil
2016-12-23  0:48 ` Harish Patil [this message]
2016-12-23  0:48 ` [dpdk-stable] [PATCH v2 7/7] net/qede: restrict maximum queues for PF/VF Harish Patil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1482454091-12819-6-git-send-email-harish.patil@qlogic.com \
    --to=harish.patil@qlogic.com \
    --cc=Dept-EngDPDKDev@cavium.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@intel.com \
    --cc=stable@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).