ice: report timeout length for erasing during devlink flash
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 11 Nov 2020 18:59:15 +0000 (10:59 -0800)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 5 Feb 2021 17:34:24 +0000 (09:34 -0800)
commit08e1294daa2986939b7585404fe0f432695c6613
tree338134b99a7d3bb7506e71e571ed17e0d6f13799
parent4d469ec8ec05e1fa4792415de1a95b28871ff2fa
ice: report timeout length for erasing during devlink flash

When erasing, notify userspace of how long we will potentially take to
erase a module. Doing so allows userspace to report the timeout, giving
a clear indication of the upper time bound of the operation.

Since we're re-using the erase timeout value, make it a macro rather
than a magic number.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Shannon Nelson <snelson@pensando.io>
Tested-by: Tony Brelinski <tonyx.brelinski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/ice/ice_fw_update.c