Commit 17bc6d07 authored by Tony Nguyen's avatar Tony Nguyen Committed by Jeff Kirsher

ice: Move vector base setup to PF VSI

When interrupt tracking was refactored, during rebuild, the call to
ice_vsi_setup_vector_base() was inadvertently removed from the PF VSI
instead of being removed from the VF VSI. During reset, the failure to
properly setup the vector base generates a call trace. Correct this so
that resets/rebuilds properly complete.

Fixes: cbe66bfe ("ice: Refactor interrupt tracking")
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 36517fd3
...@@ -2978,6 +2978,10 @@ int ice_vsi_rebuild(struct ice_vsi *vsi) ...@@ -2978,6 +2978,10 @@ int ice_vsi_rebuild(struct ice_vsi *vsi)
if (ret) if (ret)
goto err_rings; goto err_rings;
ret = ice_vsi_setup_vector_base(vsi);
if (ret)
goto err_vectors;
ret = ice_vsi_set_q_vectors_reg_idx(vsi); ret = ice_vsi_set_q_vectors_reg_idx(vsi);
if (ret) if (ret)
goto err_vectors; goto err_vectors;
...@@ -2999,10 +3003,6 @@ int ice_vsi_rebuild(struct ice_vsi *vsi) ...@@ -2999,10 +3003,6 @@ int ice_vsi_rebuild(struct ice_vsi *vsi)
if (ret) if (ret)
goto err_rings; goto err_rings;
ret = ice_vsi_setup_vector_base(vsi);
if (ret)
goto err_vectors;
ret = ice_vsi_set_q_vectors_reg_idx(vsi); ret = ice_vsi_set_q_vectors_reg_idx(vsi);
if (ret) if (ret)
goto err_vectors; goto err_vectors;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment