net/bnxt: fix HWRM and FW incompatibility handling
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Wed, 10 Mar 2021 07:50:53 +0000 (13:20 +0530)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Fri, 12 Mar 2021 06:13:28 +0000 (07:13 +0100)
commitb0764e7c207b0932ecd73655d8f7aa015e6733f4
tree7cbf3703f4969a9ec7542ae211a641069d4dad2b
parent01406837bf49950fa3a3fdd9d62eb7e0819383e4
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>
drivers/net/bnxt/bnxt_hwrm.c