summaryrefslogtreecommitdiff
path: root/drivers/net/i40e
diff options
context:
space:
mode:
authorQi Zhang <qi.z.zhang@intel.com>2018-09-25 10:34:35 +0800
committerFerruh Yigit <ferruh.yigit@intel.com>2018-10-11 18:53:48 +0200
commit6ceb62fc9793bfde20b55d62ae7eb2462dd5a0c3 (patch)
tree2507b8d49c62bfa397a934c6e8cc313374ae9600 /drivers/net/i40e
parent50130a0c4440a9cd81a895cc9012372c78ca86ac (diff)
downloaddpdk-next-eventdev-6ceb62fc9793bfde20b55d62ae7eb2462dd5a0c3.zip
dpdk-next-eventdev-6ceb62fc9793bfde20b55d62ae7eb2462dd5a0c3.tar.gz
dpdk-next-eventdev-6ceb62fc9793bfde20b55d62ae7eb2462dd5a0c3.tar.xz
net/i40e/base: add additional return code
Firmware can return a busy state, so the i40e_asq_send_command will return I40E_ERR_NOT_READY. Signed-off-by: Qi Zhang <qi.z.zhang@intel.com> Acked-by: Beilei Xing <beilei.xing@intel.com>
Diffstat (limited to 'drivers/net/i40e')
-rw-r--r--drivers/net/i40e/base/i40e_adminq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/i40e/base/i40e_adminq.c b/drivers/net/i40e/base/i40e_adminq.c
index bb4c5c6..3a11bec 100644
--- a/drivers/net/i40e/base/i40e_adminq.c
+++ b/drivers/net/i40e/base/i40e_adminq.c
@@ -963,6 +963,8 @@ enum i40e_status_code i40e_asq_send_command(struct i40e_hw *hw,
cmd_completed = true;
if ((enum i40e_admin_queue_err)retval == I40E_AQ_RC_OK)
status = I40E_SUCCESS;
+ 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;