]> git.ipfire.org Git - thirdparty/linux.git/commit
bnxt_en: Fix handling FRAG_ERR when NVM_INSTALL_UPDATE cmd fails
authorVasundhara Volam <vasundhara-v.volam@broadcom.com>
Sat, 17 Aug 2019 21:04:49 +0000 (17:04 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Aug 2019 20:05:01 +0000 (13:05 -0700)
commitdd2ebf3404c7c295014bc025dea23960960ceb1a
treec69c46843c57da534298e61a9c799315d7049887
parente8f267b063208372f7a329c6d5288d58944d873c
bnxt_en: Fix handling FRAG_ERR when NVM_INSTALL_UPDATE cmd fails

If FW returns FRAG_ERR in response error code, driver is resending the
command only when HWRM command returns success. Fix the code to resend
NVM_INSTALL_UPDATE command with DEFRAG install flags, if FW returns
FRAG_ERR in its response error code.

Fixes: cb4d1d626145 ("bnxt_en: Retry failed NVM_INSTALL_UPDATE with defragmentation flag enabled.")
Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c