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>
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))