]> 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)
commitdc1f687bc90d664ede2d67a2fffa894c1b0697f1
tree40f5e5db30c780f4874b6b244725f5742ca211c7
parent4facde400a01e3102c8b74a10041fe64ef1c3533
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