]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc0ca6a43a8fbd0036adc21bd87884052ea8b3b2a
tree6b1c670aa6d79de55a44933b2c99a3caf33a2ad3
parentcdd74f25f89dea7bdd2bb66eceee0339adb019ea
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: b7bc480e5c60 ("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