i40e: add an error code check in i40e_vsi_setup
check the value of 'ret' after calling 'i40e_vsi_config_rss'. Signed-off-by: Su Hui <suhui@nfschina.com> Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org> 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/20231113231047.548659-3-anthony.l.nguyen@intel.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
aa6908ca3b
commit
add35e623e
1 changed files with 4 additions and 0 deletions
|
@ -14591,9 +14591,13 @@ struct i40e_vsi *i40e_vsi_setup(struct i40e_pf *pf, u8 type,
|
|||
if ((pf->hw_features & I40E_HW_RSS_AQ_CAPABLE) &&
|
||||
(vsi->type == I40E_VSI_VMDQ2)) {
|
||||
ret = i40e_vsi_config_rss(vsi);
|
||||
if (ret)
|
||||
goto err_config;
|
||||
}
|
||||
return vsi;
|
||||
|
||||
err_config:
|
||||
i40e_vsi_clear_rings(vsi);
|
||||
err_rings:
|
||||
i40e_vsi_free_q_vectors(vsi);
|
||||
err_msix:
|
||||
|
|
Loading…
Add table
Reference in a new issue