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)
commitc12e1643d2738bcd4e26252ce531878841dd3f38
tree22372af495d2bbbd37c603efa97daa9e48c890a4
parent0afd6a4e8028cc487c240b6cfe04094e45a306e4
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: c7dd7ab4b204 ("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