i40e: Add additional return code to i40e_asq_send_command
Firmware can return a busy state, so the function return I40E_ERR_NOT_READY. Signed-off-by: Piotr Azarewicz <piotr.azarewicz@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:
parent
6e2feaa344
commit
b2b57b2958
@ -868,6 +868,8 @@ i40e_status i40e_asq_send_command(struct i40e_hw *hw,
|
||||
cmd_completed = true;
|
||||
if ((enum i40e_admin_queue_err)retval == I40E_AQ_RC_OK)
|
||||
status = 0;
|
||||
else if ((enum i40e_admin_queue_err)retval == I40E_AQ_RC_EBUSY)
|
||||
status = I40E_ERR_NOT_READY;
|
||||
else
|
||||
status = I40E_ERR_ADMIN_QUEUE_ERROR;
|
||||
hw->aq.asq_last_status = (enum i40e_admin_queue_err)retval;
|
||||
|
@ -797,6 +797,8 @@ i40e_status i40evf_asq_send_command(struct i40e_hw *hw,
|
||||
cmd_completed = true;
|
||||
if ((enum i40e_admin_queue_err)retval == I40E_AQ_RC_OK)
|
||||
status = 0;
|
||||
else if ((enum i40e_admin_queue_err)retval == I40E_AQ_RC_EBUSY)
|
||||
status = I40E_ERR_NOT_READY;
|
||||
else
|
||||
status = I40E_ERR_ADMIN_QUEUE_ERROR;
|
||||
hw->aq.asq_last_status = (enum i40e_admin_queue_err)retval;
|
||||
|
Loading…
Reference in New Issue
Block a user