aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/i40e/i40e_adminq.c
diff options
context:
space:
mode:
authorAnjali Singhai Jain <anjali.singhai@intel.com>2013-11-28 01:39:45 -0500
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2014-01-06 06:26:23 -0500
commite1860d8f1ceabd527e191d6e9e789d9bfa8be1e6 (patch)
tree2eb8edf2f9f21ddec2ff549801e0c4e1158f5708 /drivers/net/ethernet/intel/i40e/i40e_adminq.c
parentb774c7dd75207a79dcb5076ccca3ddc632aa072b (diff)
i40e: Admin queue shutdown fixes
Always call the AQ call to shutdown the queue in the shutdown path. Check ASQ is alive before issuing the AQ command since we might be resetting to recover from a bad state in which case we should not issue the AQ command. Use the register variable for length so it can be used by PF, VF and GL AQ commands. Change-Id: Ic3d305687ea3f1a6afa84e864b7a27bd38a9af32 Signed-off-by: Anjali Singhai Jain <anjali.singhai@intel.com> Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e/i40e_adminq.c')
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_adminq.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_adminq.c b/drivers/net/ethernet/intel/i40e/i40e_adminq.c
index d04ad3b202e3..f75b5733f34c 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_adminq.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_adminq.c
@@ -609,6 +609,9 @@ i40e_status i40e_shutdown_adminq(struct i40e_hw *hw)
609{ 609{
610 i40e_status ret_code = 0; 610 i40e_status ret_code = 0;
611 611
612 if (i40e_check_asq_alive(hw))
613 i40e_aq_queue_shutdown(hw, true);
614
612 i40e_shutdown_asq(hw); 615 i40e_shutdown_asq(hw);
613 i40e_shutdown_arq(hw); 616 i40e_shutdown_arq(hw);
614 617