]> 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)
commit54798cfca8eeb081c2a14a98f2983ce1542d90a2
tree6b1c670aa6d79de55a44933b2c99a3caf33a2ad3
parent66a396af3f67e92ed5d43076c26fa3c6f07a7f01
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: c1115fa81705 ("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