mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
ice: log an error message when eswitch fails to configure
When ice_eswitch_configure fails, print an error message to make it more obvious why VF initialization did not succeed. Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Tested-by: Sandeep Penigalapati <sandeep.penigalapati@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
This commit is contained in:
parent
94ab2488d4
commit
2b36944810
@ -2087,8 +2087,10 @@ static int ice_ena_vfs(struct ice_pf *pf, u16 num_vfs)
|
||||
clear_bit(ICE_VF_DIS, pf->state);
|
||||
|
||||
ret = ice_eswitch_configure(pf);
|
||||
if (ret)
|
||||
if (ret) {
|
||||
dev_err(dev, "Failed to configure eswitch, err %d\n", ret);
|
||||
goto err_unroll_sriov;
|
||||
}
|
||||
|
||||
/* rearm global interrupts */
|
||||
if (test_and_clear_bit(ICE_OICR_INTR_DIS, pf->state))
|
||||
|
Loading…
Reference in New Issue
Block a user