]> www.infradead.org Git - users/willy/xarray.git/commit
bnxt_en: Add mem_valid bit to struct bnxt_ctx_mem_type
authorShruti Parab <shruti.parab@broadcom.com>
Fri, 15 Nov 2024 15:14:28 +0000 (07:14 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 19 Nov 2024 03:48:54 +0000 (19:48 -0800)
commit0b350b4927e69d66629099dbb32cad8d2d56a26d
tree8aa7642e2359004a9e2d065d9de20642bc148c4f
parentff00bcc9ecccf4a1ce3a06eb38a9b4592f870f80
bnxt_en: Add mem_valid bit to struct bnxt_ctx_mem_type

Add a new bit to struct bnxt_ctx_mem_type to indicate that host
memory has been successfully allocated for this context memory type.
In the next patches, we'll be adding some additional context memory
types for FW debugging/logging.  If memory cannot be allocated for
any of these new types, we will not abort and the cleared mem_valid
bit will indicate to skip configuring the memory type.

Reviewed-by: Hongguang Gao <hongguang.gao@broadcom.com>
Signed-off-by: Shruti Parab <shruti.parab@broadcom.com>
Signed-of-by: Michael Chan <michael.chan@broadcom.com>
Link: https://patch.msgid.link/20241115151438.550106-3-michael.chan@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h