DPDK patches and discussions
 help / color / mirror / Atom feed
From: Rasesh Mody <rasesh.mody@cavium.com>
To: <dev@dpdk.org>
Cc: Harish Patil <harish.patil@cavium.com>,
	<Dept-EngDPDKDev@cavium.com>,
	Rasesh Mody <rasesh.mody@cavium.com>
Subject: [dpdk-dev] [INTERNAL REVIEW 2/7] net/qede: fix incorrect queue id for 100G
Date: Mon, 24 Jul 2017 03:10:10 -0700	[thread overview]
Message-ID: <1500891015-21625-2-git-send-email-rasesh.mody@cavium.com> (raw)
In-Reply-To: <1500891015-21625-1-git-send-email-rasesh.mody@cavium.com>

From: Harish Patil <harish.patil@cavium.com>

'commit 4c4bdadfa9e7 ("net/qede: refactoring multi-queue implementation")'
introduced a regression where default RSS configuration is incorrect in
the case of 100G mode. Currently we are passing absolute queue ids while
creating RX/TX queues. But in CMT mode we need to provide queue id
relative to the engine id. So this fix takes into account num_hwfns
while creating queues.

Fixes: 4c4bdadfa9e7 ("net/qede: refactoring multi-queue implementation")

Signed-off-by: Harish Patil <harish.patil@cavium.com>
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
---
 drivers/net/qede/qede_rxtx.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/net/qede/qede_rxtx.c b/drivers/net/qede/qede_rxtx.c
index 0de28c7..a232d20 100644
--- a/drivers/net/qede/qede_rxtx.c
+++ b/drivers/net/qede/qede_rxtx.c
@@ -552,8 +552,9 @@ void qede_dealloc_fp_resc(struct rte_eth_dev *eth_dev)
 		ecore_sb_ack(fp->sb_info, IGU_INT_DISABLE, 0);
 		/* Prepare ramrod */
 		memset(&params, 0, sizeof(params));
-		params.queue_id = rx_queue_id;
+		params.queue_id = rx_queue_id / edev->num_hwfns;
 		params.vport_id = 0;
+		params.stats_id = params.vport_id;
 		params.sb = fp->sb_info->igu_sb_id;
 		DP_INFO(edev, "rxq %u igu_sb_id 0x%x\n",
 				fp->rxq->queue_id, fp->sb_info->igu_sb_id);
@@ -610,8 +611,9 @@ void qede_dealloc_fp_resc(struct rte_eth_dev *eth_dev)
 		txq = eth_dev->data->tx_queues[tx_queue_id];
 		fp = &qdev->fp_array[tx_queue_id];
 		memset(&params, 0, sizeof(params));
-		params.queue_id = tx_queue_id;
+		params.queue_id = tx_queue_id / edev->num_hwfns;
 		params.vport_id = 0;
+		params.stats_id = params.vport_id;
 		params.sb = fp->sb_info->igu_sb_id;
 		DP_INFO(edev, "txq %u igu_sb_id 0x%x\n",
 				fp->txq->queue_id, fp->sb_info->igu_sb_id);
-- 
1.7.10.3

  reply	other threads:[~2017-07-24 10:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-24 10:10 [dpdk-dev] [INTERNAL REVIEW 1/7] net/qede/base: fix recovery from previous ungraceful exit Rasesh Mody
2017-07-24 10:10 ` Rasesh Mody [this message]
2017-07-24 10:10 ` [dpdk-dev] [INTERNAL REVIEW 3/7] net/qede/base: fix for adapter specific stats Rasesh Mody
2017-07-24 10:10 ` [dpdk-dev] [INTERNAL REVIEW 4/7] net/qede: fix inner L3/L4 chksum offload for tunnel frames Rasesh Mody
2017-07-24 10:10 ` [dpdk-dev] [INTERNAL REVIEW 5/7] doc: list NPAR as supported feature in qede Rasesh Mody
2017-07-24 10:10 ` [dpdk-dev] [INTERNAL REVIEW 6/7] net/qede: fix chip details print Rasesh Mody
2017-07-24 10:10 ` [dpdk-dev] [INTERNAL REVIEW 7/7] net/qede: update PMD version 2.5.2.1 Rasesh Mody
2017-07-24 10:18 ` [dpdk-dev] [INTERNAL REVIEW 1/7] net/qede/base: fix recovery from previous ungraceful exit Mody, Rasesh
2017-07-24 15:00   ` Thomas Monjalon

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=1500891015-21625-2-git-send-email-rasesh.mody@cavium.com \
    --to=rasesh.mody@cavium.com \
    --cc=Dept-EngDPDKDev@cavium.com \
    --cc=dev@dpdk.org \
    --cc=harish.patil@cavium.com \
    /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).