net/bnxt: fix TQM ring context memory size
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Wed, 6 May 2020 06:27:10 +0000 (11:57 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 11 May 2020 20:27:39 +0000 (22:27 +0200)
commit2f8cc21f0943e1fde68b38e09f9bf238d0eb7811
tree298d13cd2094a036591d7289a5070ceda818ffc0
parentfd14f72296a3c2b113b5dc232f5d7cf3a8a72b0d
net/bnxt: fix TQM ring context memory size

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 firmware spec. for 57500 and newer
chips.

Fixes: cc5e26b8ef98 ("net/bnxt: increase TQM entry allocation")
Cc: stable@dpdk.org
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c