bnxt_en: Retry installing FW package under NO_SPACE error condition.
authorPavan Chebbi <pavan.chebbi@broadcom.com>
Sun, 13 Dec 2020 11:51:45 +0000 (06:51 -0500)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Dec 2020 02:52:44 +0000 (18:52 -0800)
commit1432c3f6a6ca091db10b60c7b9078f34f4c5268d
tree3819cf759e4ad64f7ebd90dec96c6329c65813d3
parent2e5fb428a61ce58f9db6ceccdeb6dc292248f1dc
bnxt_en: Retry installing FW package under NO_SPACE error condition.

In bnxt_flash_package_from_fw_obj(), if firmware returns the NO_SPACE
error, call __bnxt_flash_nvram() to create the UPDATE directory and
then loop back and retry one more time.

Since the first try may fail, we use the silent version to send the
firmware commands.

Reviewed-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Reviewed-by: Edwin Peer <edwin.peer@broadcom.com>
Signed-off-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c