aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/i40e
diff options
context:
space:
mode:
authorPiotr Azarewicz <piotr.azarewicz@intel.com>2018-07-31 03:41:46 -0700
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2018-08-07 12:20:38 -0700
commitb2b57b29588c36920fe1364f3f24bebfbe8bf321 (patch)
treeb0e313949bd1bf8f22cd6b621f10144bf0d2028f /drivers/net/ethernet/intel/i40e
parenti40e: fix warning about shadowed ring parameter (diff)
downloadlinux-dev-b2b57b29588c36920fe1364f3f24bebfbe8bf321.tar.xz
linux-dev-b2b57b29588c36920fe1364f3f24bebfbe8bf321.zip
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>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e')
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_adminq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_adminq.c b/drivers/net/ethernet/intel/i40e/i40e_adminq.c
index ddbea79d18e5..501ee718177f 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_adminq.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_adminq.c
@@ -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;