ice: handle the VF VSI rebuild failure
[ Upstream commitc7ee6ce1cf] VSI rebuild can be failed for LAN queue config, then the VF's VSI will be NULL, the VF reset should be stopped with the VF entering into the disable state. Fixes:12bb018c53("ice: Refactor VF reset") Signed-off-by: Haiyue Wang <haiyue.wang@intel.com> Tested-by: Konrad Jankowski <konrad0.jankowski@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
a79883ce1e
commit
8726b9e81b
1 changed files with 6 additions and 1 deletions
|
|
@ -1341,7 +1341,12 @@ bool ice_reset_vf(struct ice_vf *vf, bool is_vflr)
|
|||
}
|
||||
|
||||
ice_vf_pre_vsi_rebuild(vf);
|
||||
ice_vf_rebuild_vsi_with_release(vf);
|
||||
|
||||
if (ice_vf_rebuild_vsi_with_release(vf)) {
|
||||
dev_err(dev, "Failed to release and setup the VF%u's VSI\n", vf->vf_id);
|
||||
return false;
|
||||
}
|
||||
|
||||
ice_vf_post_vsi_rebuild(vf);
|
||||
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue