]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bnxt_en: Check context memory requirements from firmware.
authorMichael Chan <michael.chan@broadcom.com>
Sun, 14 Oct 2018 11:02:43 +0000 (07:02 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Oct 2018 05:44:32 +0000 (22:44 -0700)
commit98f04cf0f1fc26ee8401e7c06b422508acc8374c
tree5a390237ef8fda275ae3cb4ab026fa8b3347bbb8
parent66cca20abcf742e2e39ec437144e7787ecefa037
bnxt_en: Check context memory requirements from firmware.

New device requires host context memory as a backing store.  Call
firmware to check for context memory requirements and store the
parameters.  Allocate host pages accordingly.

We also need to move the call bnxt_hwrm_queue_qportcfg() earlier
so that all the supported hardware queues and the IDs are known
before checking and allocating context memory.

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