i40e: Update status codes
Add a few new status code which will be used by the ice driver, and rename a few to make them more consistent. Error code are mapped to similar values as in i40e_status.h, so as to be compatible with older VF drivers not using this status enum. Signed-off-by: Mitch Williams <mitch.a.williams@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:

committed by
Jeff Kirsher

parent
48e01e001d
commit
bb58fd7eef
@@ -3674,7 +3674,7 @@ int i40e_vc_process_vf_msg(struct i40e_pf *pf, s16 vf_id, u32 v_opcode,
|
||||
dev_err(&pf->pdev->dev, "Invalid message from VF %d, opcode %d, len %d\n",
|
||||
local_vf_id, v_opcode, msglen);
|
||||
switch (ret) {
|
||||
case VIRTCHNL_ERR_PARAM:
|
||||
case VIRTCHNL_STATUS_ERR_PARAM:
|
||||
return -EPERM;
|
||||
default:
|
||||
return -EINVAL;
|
||||
|
Reference in New Issue
Block a user