From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rnd-relay.smtp.broadcom.com (rnd-relay.smtp.broadcom.com [192.19.229.170]) by dpdk.org (Postfix) with ESMTP id E4D6A23D; Thu, 26 Jul 2018 03:16:00 +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 03FF830C03A; Wed, 25 Jul 2018 18:15:55 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 rnd-relay.smtp.broadcom.com 03FF830C03A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1532567755; bh=kFaHTTK1AJtPHXnVIVmYTf+HVSEnXOX+UogV1EVZtXw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tpDfPrIsbOzbkRAwJJeP85Mi1To29f9Jh43h9/yYI/JK1vxkEab40yIfZEIHnFvAE W0CPnpu2Wx/WUmfnjf7+PAGsP6GD3oGTCiYQrHBTaX+WdDW/SBkGzb1sC68McMdyt4 JpKSuFF+dXJy157sTH1IBhBrqNq+EbAwXm9CaDgk= Received: from C02VPB22HTD6.vpn.broadcom.net (unknown [10.10.118.171]) by nis-sj1-27.broadcom.com (Postfix) with ESMTP id BA539AC0761; Wed, 25 Jul 2018 18:15:54 -0700 (PDT) From: Ajit Khaparde To: dev@dpdk.org Cc: stable@dpdk.org Date: Wed, 25 Jul 2018 18:15:48 -0700 Message-Id: <20180726011548.97788-6-ajit.khaparde@broadcom.com> X-Mailer: git-send-email 2.15.2 (Apple Git-101.1) In-Reply-To: <20180726011548.97788-1-ajit.khaparde@broadcom.com> References: <20180726011548.97788-1-ajit.khaparde@broadcom.com> Subject: [dpdk-dev] [PATCH 5/5] net/bnxt: fix to set proper reta size 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: , X-List-Received-Date: Thu, 26 Jul 2018 01:16:01 -0000 The reta_size being indicated in the bnxt_dev_info_get_op was incorrect. Set it to the value supported by the hardware. Fixes: 0a6d2a720078 ("net/bnxt: get device infos") Cc: stable@dpdk.org Reviewed-by: Scott Branden Reviewed-by: Randy Schacher Tested-by: Randy Schacher Signed-off-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c index 9508d6bcb..cc7e4391c 100644 --- a/drivers/net/bnxt/bnxt_ethdev.c +++ b/drivers/net/bnxt/bnxt_ethdev.c @@ -438,7 +438,7 @@ static void bnxt_dev_info_get_op(struct rte_eth_dev *eth_dev, /* For the sake of symmetry, max_rx_queues = max_tx_queues */ dev_info->max_rx_queues = max_rx_rings; dev_info->max_tx_queues = max_rx_rings; - dev_info->reta_size = bp->max_rsscos_ctx; + dev_info->reta_size = HW_HASH_INDEX_SIZE; dev_info->hash_key_size = 40; max_vnics = bp->max_vnics; -- 2.15.2 (Apple Git-101.1)