]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcdd74f25f89dea7bdd2bb66eceee0339adb019ea
tree4292a4a82edf7976a7daa4fda51211a8308bd8b9
parent6b3ffd9d3e904de0de8d96cabc154df3aefb9dd0
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