bnxt_en: Allocate TQM ring context memory according to fw specification.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 4 May 2020 08:50:28 +0000 (04:50 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 May 2020 17:44:10 +0000 (10:44 -0700)
commitac3158cb01084aa654222f1ad970b6c1af3cef98
tree4292a4a82edf7976a7daa4fda51211a8308bd8b9
parent460c2577aaf349f4e49eaf2b9ec3d8c52a619ef5
bnxt_en: Allocate TQM ring context memory according to fw specification.

Newer firmware spec. will specify 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.

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
drivers/net/ethernet/broadcom/bnxt/bnxt.h