bnxt_en: Improve TQM ring context memory sizing formulas.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 4 May 2020 08:50:29 +0000 (04:50 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 May 2020 17:44:10 +0000 (10:44 -0700)
commitc7dd7ab4b204ac0142e0d05e71e05e71ae6cb270
tree6b1c670aa6d79de55a44933b2c99a3caf33a2ad3
parentac3158cb01084aa654222f1ad970b6c1af3cef98
bnxt_en: Improve TQM ring context memory sizing formulas.

The current formulas to calculate the TQM slow path and fast path ring
context memory sizes are not quite correct.  TQM slow path entry is
array index 0 of ctx->tqm_mem[].  The other array entries are for fast
path.  Fix these sizes according to latest firmware spec. for 57500 and
newer chips.

Fixes: 3be8136ce14e ("bnxt_en: Initialize context memory to the value specified by firmware.")
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