]> 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)
commit66a396af3f67e92ed5d43076c26fa3c6f07a7f01
tree4292a4a82edf7976a7daa4fda51211a8308bd8b9
parent937465ef9c13c09adddfea350b4029b893323760
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