summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAjit Khaparde <ajit.khaparde@broadcom.com>2018-07-25 18:15:48 -0700
committerYongseok Koh <yskoh@mellanox.com>2018-08-13 11:45:59 -0700
commit2658600aca85843080ca6ae6f0afb4f08e065c50 (patch)
tree33c0a2172f72fedd3bc83721237efc210d67aa2f
parente6af6f16d45dca27115526bd6201a6c658bf6d2c (diff)
downloaddpdk-stable-2658600aca85843080ca6ae6f0afb4f08e065c50.zip
dpdk-stable-2658600aca85843080ca6ae6f0afb4f08e065c50.tar.gz
dpdk-stable-2658600aca85843080ca6ae6f0afb4f08e065c50.tar.xz
net/bnxt: fix RETA size
[ upstream commit 7f675c27d9c80bc6ff3793140fa3215671b295d6 ] 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") Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Reviewed-by: Scott Branden <scott.branden@broadcom.com> Reviewed-by: Randy Schacher <stuart.schacher@broadcom.com> Tested-by: Randy Schacher <stuart.schacher@broadcom.com>
-rw-r--r--drivers/net/bnxt/bnxt_ethdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c
index 5b0bf80..7466a64 100644
--- a/drivers/net/bnxt/bnxt_ethdev.c
+++ b/drivers/net/bnxt/bnxt_ethdev.c
@@ -440,7 +440,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;