ice: Fix package download algorithm
authorDan Nowlin <dan.nowlin@intel.com>
Wed, 8 May 2024 17:19:07 +0000 (10:19 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 11 May 2024 01:54:18 +0000 (18:54 -0700)
commit6d51d44ecddb5c2962688ef06e55e4fbc949f04a
tree27954a9dc44908e24db92195e9a844e52e4996b2
parent5e69ff84f3e6cc54502a902043847b37ed78afd4
ice: Fix package download algorithm

Previously, the driver assumed that all signature segments would contain
one or more buffers to download. In the future, there will be signature
segments that will contain no buffers to download.

Correct download flow to allow for signature segments that have zero
download buffers and skip the download in this case.

Fixes: 3cbdb0343022 ("ice: Add support for E830 DDP package segment")
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: Dan Nowlin <dan.nowlin@intel.com>
Signed-off-by: Paul Greenwalt <paul.greenwalt@intel.com>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Link: https://lore.kernel.org/r/20240508171908.2760776-1-anthony.l.nguyen@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/intel/ice/ice_ddp.c