summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Richardson <lance.richardson@broadcom.com>2019-10-03 20:48:55 -0700
committerFerruh Yigit <ferruh.yigit@intel.com>2019-10-08 12:14:31 +0200
commitcc5e26b8ef98f6e10206245ab0ad578511ae5ed2 (patch)
treedcafbb424d7b14b90dfafaa7a8ac6f4c63474daa
parente9924638f5c967e119983f871959bc632d37d83d (diff)
downloaddpdk-cc5e26b8ef98f6e10206245ab0ad578511ae5ed2.zip
dpdk-cc5e26b8ef98f6e10206245ab0ad578511ae5ed2.tar.gz
dpdk-cc5e26b8ef98f6e10206245ab0ad578511ae5ed2.tar.xz
net/bnxt: increase TQM entry allocation
The current TQM backing store size isn't sufficient to allow 512 transmit rings. Fix by correcting TQM SP queue size calculation. Fixes: f8168ca0e690 ("net/bnxt: support thor controller") Cc: stable@dpdk.org Signed-off-by: Lance Richardson <lance.richardson@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
-rw-r--r--drivers/net/bnxt/bnxt_ethdev.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c
index 02eacf7..0e893cc 100644
--- a/drivers/net/bnxt/bnxt_ethdev.c
+++ b/drivers/net/bnxt/bnxt_ethdev.c
@@ -4292,7 +4292,9 @@ int bnxt_alloc_ctx_mem(struct bnxt *bp)
if (rc)
return rc;
- entries = ctx->qp_max_l2_entries;
+ entries = ctx->qp_max_l2_entries +
+ ctx->vnic_max_vnic_entries +
+ ctx->tqm_min_entries_per_ring;
entries = bnxt_roundup(entries, ctx->tqm_entries_multiple);
entries = clamp_t(uint32_t, entries, ctx->tqm_min_entries_per_ring,
ctx->tqm_max_entries_per_ring);