net/bnxt: fix HWRM and FW incompatibility handling
Fix to return an error when the HWRM version that the driver is compiled against is incompatible with the FW that is actually running on the card. This is determined based on the req length indicated by FW against the value supported in the HWRM. Fixes: 804e746c7b73 ("net/bnxt: add hardware resource manager init code") Cc: stable@dpdk.org Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com> Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
This commit is contained in:
parent
01406837bf
commit
b0764e7c20
@ -1271,6 +1271,7 @@ int bnxt_hwrm_ver_get(struct bnxt *bp, uint32_t timeout)
|
||||
if (bp->max_req_len > resp->max_req_win_len) {
|
||||
PMD_DRV_LOG(ERR, "Unsupported request length\n");
|
||||
rc = -EINVAL;
|
||||
goto error;
|
||||
}
|
||||
|
||||
bp->chip_num = rte_le_to_cpu_16(resp->chip_num);
|
||||
|
Loading…
x
Reference in New Issue
Block a user