bnxt_en: Restructure bnxt_flash_package_from_fw_obj() to execute in a loop.
authorPavan Chebbi <pavan.chebbi@broadcom.com>
Sun, 13 Dec 2020 11:51:44 +0000 (06:51 -0500)
committerJakub Kicinski <kuba@kernel.org>
Tue, 15 Dec 2020 02:52:43 +0000 (18:52 -0800)
commit2e5fb428a61ce58f9db6ceccdeb6dc292248f1dc
treebceec7b3d582ebe5483fd2d547f5fff3e57cd249
parenta9094ba6072bfabe93f93b641a3858d9c91c2c86
bnxt_en: Restructure bnxt_flash_package_from_fw_obj() to execute in a loop.

On NICs with a smaller NVRAM, FW installation may fail after multiple
updates due to fragmentation.  The driver can retry when FW returns
a special error code.  To faciliate the retry, we restructure the
logic that performs the flashing in a loop.  The actual retry logic
will be added in the next patch.

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