Commit 4ee9371
bnxt_en: set backing store type from query type
bnxt_hwrm_func_backing_store_qcaps_v2() stores resp->type from the
firmware response in ctxm->type and later uses that value to index
fixed backing-store metadata arrays such as ctx_arr[] and
bnxt_bstore_to_trace[].
ctxm->type is fixed by the current backing-store query type and matches
the array index of ctx->ctx_arr. Set ctxm->type from the current loop
variable instead of depending on resp->type.
Also update the loop to advance type from next_valid_type in the for
statement, which keeps the control flow simpler for non-valid and
unchanged entries.
Fixes: 6a4d077 ("bnxt_en: Add support for new backing store query firmware API")
Signed-off-by: Pengpeng Hou <[email protected]>
Reviewed-by: Michael Chan <[email protected]>
Tested-by: Michael Chan <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>1 parent cedc1bf commit 4ee9371
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8671 | 8671 | | |
8672 | 8672 | | |
8673 | 8673 | | |
8674 | | - | |
| 8674 | + | |
8675 | 8675 | | |
8676 | 8676 | | |
8677 | 8677 | | |
| |||
8687 | 8687 | | |
8688 | 8688 | | |
8689 | 8689 | | |
8690 | | - | |
| 8690 | + | |
8691 | 8691 | | |
8692 | 8692 | | |
8693 | 8693 | | |
| |||
8700 | 8700 | | |
8701 | 8701 | | |
8702 | 8702 | | |
8703 | | - | |
| 8703 | + | |
8704 | 8704 | | |
8705 | 8705 | | |
8706 | 8706 | | |
| |||
8715 | 8715 | | |
8716 | 8716 | | |
8717 | 8717 | | |
8718 | | - | |
| 8718 | + | |
8719 | 8719 | | |
8720 | 8720 | | |
8721 | 8721 | | |
| |||
0 commit comments