Message ID | 20240508171908.2760776-1-anthony.l.nguyen@intel.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 6d51d44ecddb5c2962688ef06e55e4fbc949f04a |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net] ice: Fix package download algorithm | expand |
Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski <kuba@kernel.org>: On Wed, 8 May 2024 10:19:07 -0700 you wrote: > From: Dan Nowlin <dan.nowlin@intel.com> > > 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. > > [...] Here is the summary with links: - [net] ice: Fix package download algorithm https://git.kernel.org/netdev/net/c/6d51d44ecddb You are awesome, thank you!
diff --git a/drivers/net/ethernet/intel/ice/ice_ddp.c b/drivers/net/ethernet/intel/ice/ice_ddp.c index fc91c4d41186..4df561d64bc3 100644 --- a/drivers/net/ethernet/intel/ice/ice_ddp.c +++ b/drivers/net/ethernet/intel/ice/ice_ddp.c @@ -1424,14 +1424,14 @@ ice_dwnld_sign_and_cfg_segs(struct ice_hw *hw, struct ice_pkg_hdr *pkg_hdr, goto exit; } - conf_idx = le32_to_cpu(seg->signed_seg_idx); - start = le32_to_cpu(seg->signed_buf_start); count = le32_to_cpu(seg->signed_buf_count); - state = ice_download_pkg_sig_seg(hw, seg); - if (state) + if (state || !count) goto exit; + conf_idx = le32_to_cpu(seg->signed_seg_idx); + start = le32_to_cpu(seg->signed_buf_start); + state = ice_download_pkg_config_seg(hw, pkg_hdr, conf_idx, start, count);