]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Fix TQM fastpath ring backing store computation
authorRukhsana Ansari <rukhsana.ansari@broadcom.com>
Fri, 18 Jun 2021 06:07:26 +0000 (02:07 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jun 2021 19:00:27 +0000 (12:00 -0700)
commitd418e909d60676a8569559e17fa05e9ea2e1fc60
tree22372af495d2bbbd37c603efa97daa9e48c890a4
parent803543fe38da35d533cc2eca0239a24cdc4f3b83
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: 54798cfca8ee ("bnxt_en: Improve TQM ring context memory sizing formulas.")
Signed-off-by: Rukhsana Ansari <rukhsana.ansari@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c