From: Lance Richardson Date: Thu, 18 Jul 2019 03:36:12 +0000 (+0530) Subject: net/bnxt: fix RSS table address for thor X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f8d9e381bca7a1725d0266fa278468e346a424ef;p=dpdk.git net/bnxt: fix RSS table address for thor The current implementation erroneously passes the address of the beginning of RSS table for each 64-entry context instead of the address of the appropriate suitable for the context. This results in only the first 64 receive queues being used. Fix by passing the correct address for each context. Fixes: 38412304b50a ("net/bnxt: enable RSS for thor-based controllers") Signed-off-by: Lance Richardson Reviewed-by: Ajit Khaparde Reviewed-by: Somnath Kotur --- diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index cda2c8d1d8..971713b53d 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -4134,7 +4134,9 @@ bnxt_vnic_rss_configure_thor(struct bnxt *bp, struct bnxt_vnic_info *vnic) req.hash_mode_flags = vnic->hash_mode; req.ring_grp_tbl_addr = - rte_cpu_to_le_64(vnic->rss_table_dma_addr); + rte_cpu_to_le_64(vnic->rss_table_dma_addr + + i * BNXT_RSS_ENTRIES_PER_CTX_THOR * + 2 * sizeof(*ring_tbl)); req.hash_key_tbl_addr = rte_cpu_to_le_64(vnic->rss_hash_key_dma_addr);