From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 93DC6A0471 for ; Thu, 18 Jul 2019 05:39:02 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 45AAC1BDF6; Thu, 18 Jul 2019 05:37:27 +0200 (CEST) Received: from rnd-relay.smtp.broadcom.com (rnd-relay.smtp.broadcom.com [192.19.229.170]) by dpdk.org (Postfix) with ESMTP id 94A391B964 for ; Thu, 18 Jul 2019 05:37:03 +0200 (CEST) Received: from nis-sj1-27.broadcom.com (nis-sj1-27.lvn.broadcom.net [10.75.144.136]) by rnd-relay.smtp.broadcom.com (Postfix) with ESMTP id 3D6F030C3B9; Wed, 17 Jul 2019 20:37:01 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 rnd-relay.smtp.broadcom.com 3D6F030C3B9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1563421021; bh=3S+MkcW1mnnAprerf6/jE77JSzPAoQHl2wu2KP2v/vg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fHbbpHJngVYZvRrePko5YGs5ld4rylwFFZdZ2kO0px5HbCLCdIrWywD992nNwRnmH EVuT82D835DFT6CXwtcgEHjxjvjqL+qe03iwkaXpyXq6NQIo8d9WLow5OiRLtrfxnI BVSs5waqLHk0GZoF0XZVM4/41gaY/lHdnNNRNEbE= Received: from C02VPB22HTD6.wifi.broadcom.net (c02vpb22htd6.wifi.broadcom.net [10.122.43.105]) by nis-sj1-27.broadcom.com (Postfix) with ESMTP id DB4E9AC0761; Wed, 17 Jul 2019 20:37:00 -0700 (PDT) From: Ajit Khaparde To: dev@dpdk.org Cc: ferruh.yigit@intel.com, Lance Richardson , Somnath Kotur Date: Thu, 18 Jul 2019 09:06:12 +0530 Message-Id: <20190718033616.37605-19-ajit.khaparde@broadcom.com> X-Mailer: git-send-email 2.20.1 (Apple Git-117) In-Reply-To: <20190718033616.37605-1-ajit.khaparde@broadcom.com> References: <20190718033616.37605-1-ajit.khaparde@broadcom.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 18/22] net/bnxt: pass correct RSS table address for thor X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Lance Richardson 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 subtable 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") Reviewed-by: Ajit Khaparde Reviewed-by: Somnath Kotur Signed-off-by: Lance Richardson --- drivers/net/bnxt/bnxt_hwrm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/bnxt/bnxt_hwrm.c b/drivers/net/bnxt/bnxt_hwrm.c index 301649d3b..3266c1bec 100644 --- a/drivers/net/bnxt/bnxt_hwrm.c +++ b/drivers/net/bnxt/bnxt_hwrm.c @@ -4138,7 +4138,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); -- 2.20.1 (Apple Git-117)