| 5185 | } |
| 5186 | |
| 5187 | static void bnxt_alloc_error_recovery_info(struct bnxt *bp) |
| 5188 | { |
| 5189 | struct bnxt_error_recovery_info *info = bp->recovery_info; |
| 5190 | |
| 5191 | if (info) { |
| 5192 | if (!(bp->fw_cap & BNXT_FW_CAP_HCOMM_FW_STATUS)) |
| 5193 | memset(info, 0, sizeof(*info)); |
| 5194 | return; |
| 5195 | } |
| 5196 | |
| 5197 | if (!(bp->fw_cap & BNXT_FW_CAP_ERROR_RECOVERY)) |
| 5198 | return; |
| 5199 | |
| 5200 | info = rte_zmalloc("bnxt_hwrm_error_recovery_qcfg", |
| 5201 | sizeof(*info), 0); |
| 5202 | if (!info) |
| 5203 | bp->fw_cap &= ~BNXT_FW_CAP_ERROR_RECOVERY; |
| 5204 | |
| 5205 | bp->recovery_info = info; |
| 5206 | } |
| 5207 | |
| 5208 | static void bnxt_check_fw_status(struct bnxt *bp) |
| 5209 | { |
no test coverage detected