net/bnxt: fix number of TQM ring
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Wed, 6 May 2020 06:27:09 +0000 (11:57 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 11 May 2020 20:27:39 +0000 (22:27 +0200)
commitfd14f72296a3c2b113b5dc232f5d7cf3a8a72b0d
treed1792cfd3aec3315dc7313d7aef20c682e50d0f1
parent6e3a4595a7c01d594edb0a2fc311ce06284d5031
net/bnxt: fix number of TQM ring

Newer firmware advertises the number of TQM rings to allocate
context memory for.  Use the firmware specified value and fall back
to the old value derived from "bp->max_q" if it is not available.

Fixes: f8168ca0e690 ("net/bnxt: support thor controller")
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.h
drivers/net/bnxt/bnxt_ethdev.c
drivers/net/bnxt/bnxt_hwrm.c