|
|
a6040a |
From 3a1a1f3f1344c8a3bc0b06cd23e97b3922a91a61 Mon Sep 17 00:00:00 2001
|
|
|
a6040a |
Message-Id: <3a1a1f3f1344c8a3bc0b06cd23e97b3922a91a61.1528327303.git.tredaelli@redhat.com>
|
|
|
a6040a |
From: Rasesh Mody <rasesh.mody@cavium.com>
|
|
|
a6040a |
Date: Tue, 5 Jun 2018 16:03:57 -0700
|
|
|
a6040a |
Subject: [PATCH] net/qede: fix L2-handles used for RSS hash update
|
|
|
a6040a |
|
|
|
a6040a |
Fix fast path array index which is used for passing L2 handles to RSS
|
|
|
a6040a |
indirection table, properly distribute rxq handles for indirection table.
|
|
|
a6040a |
Currently, it is using the local copy of indirection table. When the RX
|
|
|
a6040a |
queue configuration changes the local copy becomes invalid.
|
|
|
a6040a |
|
|
|
a6040a |
Fixes: 69d7ba88f1a1 ("net/qede/base: use L2-handles for RSS configuration")
|
|
|
a6040a |
Cc: stable@dpdk.org
|
|
|
a6040a |
|
|
|
a6040a |
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
|
|
|
a6040a |
Reviewed-by: Kevin Traynor <ktraynor@redhat.com>
|
|
|
a6040a |
---
|
|
|
a6040a |
drivers/net/qede/qede_ethdev.c | 2 +-
|
|
|
a6040a |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
a6040a |
|
|
|
a6040a |
diff --git a/drivers/net/qede/qede_ethdev.c b/drivers/net/qede/qede_ethdev.c
|
|
|
a6040a |
index 137f91060..cd9ec1070 100644
|
|
|
a6040a |
--- a/drivers/net/qede/qede_ethdev.c
|
|
|
a6040a |
+++ b/drivers/net/qede/qede_ethdev.c
|
|
|
a6040a |
@@ -2251,7 +2251,7 @@ int qede_rss_hash_update(struct rte_eth_dev *eth_dev,
|
|
|
a6040a |
vport_update_params.vport_id = 0;
|
|
|
a6040a |
/* pass the L2 handles instead of qids */
|
|
|
a6040a |
for (i = 0 ; i < ECORE_RSS_IND_TABLE_SIZE ; i++) {
|
|
|
a6040a |
- idx = qdev->rss_ind_table[i];
|
|
|
a6040a |
+ idx = i % QEDE_RSS_COUNT(qdev);
|
|
|
a6040a |
rss_params.rss_ind_table[i] = qdev->fp_array[idx].rxq->handle;
|
|
|
a6040a |
}
|
|
|
a6040a |
vport_update_params.rss_params = &rss_params;
|
|
|
a6040a |
--
|
|
|
a6040a |
2.17.0
|
|
|
a6040a |
|