Skip to content

Commit c12e164

Browse files
rukbrcmdavem330
authored andcommitted
bnxt_en: Fix TQM fastpath ring backing store computation
TQM fastpath ring needs to be sized to store both the requester and responder side of RoCE QPs in TQM for supporting bi-directional tests. Fix bnxt_alloc_ctx_mem() to multiply the RoCE QPs by a factor of 2 when computing the number of entries for TQM fastpath ring. This fixes an RX pipeline stall issue when running bi-directional max RoCE QP tests. Fixes: c7dd7ab ("bnxt_en: Improve TQM ring context memory sizing formulas.") Signed-off-by: Rukhsana Ansari <[email protected]> Signed-off-by: Michael Chan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 0afd6a4 commit c12e164

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/broadcom/bnxt

1 file changed

+1
-1
lines changed

drivers/net/ethernet/broadcom/bnxt/bnxt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7308,7 +7308,7 @@ static int bnxt_alloc_ctx_mem(struct bnxt *bp)
73087308
entries_sp = ctx->vnic_max_vnic_entries + ctx->qp_max_l2_entries +
73097309
2 * (extra_qps + ctx->qp_min_qp1_entries) + min;
73107310
entries_sp = roundup(entries_sp, ctx->tqm_entries_multiple);
7311-
entries = ctx->qp_max_l2_entries + extra_qps + ctx->qp_min_qp1_entries;
7311+
entries = ctx->qp_max_l2_entries + 2 * (extra_qps + ctx->qp_min_qp1_entries);
73127312
entries = roundup(entries, ctx->tqm_entries_multiple);
73137313
entries = clamp_t(u32, entries, min, ctx->tqm_max_entries_per_ring);
73147314
for (i = 0; i < ctx->tqm_fp_rings_count + 1; i++) {

0 commit comments

Comments
 (0)