]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: selectively allocate context memories
authorEdwin Peer <edwin.peer@broadcom.com>
Sun, 14 Feb 2021 23:04:56 +0000 (18:04 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Feb 2021 01:27:50 +0000 (17:27 -0800)
commitbe6d755f3d0c7c76d07f980bca6dd7e70dcec452
tree40f5e5db30c780f4874b6b244725f5742ca211c7
parent31f67c2ee0551f0fd0dd134f4a73c456c53ea015
bnxt_en: selectively allocate context memories

Newer devices may have local context memory instead of relying on the
host for backing store. In these cases, HWRM_FUNC_BACKING_STORE_QCAPS
will return a zero entry size to indicate contexts for which the host
should not allocate backing store.

Selectively allocate context memory based on device capabilities and
only enable backing store for the appropriate contexts.

Signed-off-by: Edwin Peer <edwin.peer@broadcom.com>
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