* i40e_shutdown_adminq - shutdown routine for the Admin Queue * @hw: pointer to the hardware structure **/
| 761 | * @hw: pointer to the hardware structure |
| 762 | **/ |
| 763 | enum i40e_status_code i40e_shutdown_adminq(struct i40e_hw *hw) |
| 764 | { |
| 765 | enum i40e_status_code ret_code = I40E_SUCCESS; |
| 766 | |
| 767 | if (i40e_check_asq_alive(hw)) |
| 768 | i40e_aq_queue_shutdown(hw, true); |
| 769 | |
| 770 | i40e_shutdown_asq(hw); |
| 771 | i40e_shutdown_arq(hw); |
| 772 | i40e_destroy_spinlock(&hw->aq.asq_spinlock); |
| 773 | i40e_destroy_spinlock(&hw->aq.arq_spinlock); |
| 774 | |
| 775 | if (hw->nvm_buff.va) |
| 776 | i40e_free_virt_mem(hw, &hw->nvm_buff); |
| 777 | |
| 778 | return ret_code; |
| 779 | } |
| 780 | |
| 781 | /** |
| 782 | * i40e_clean_asq - cleans Admin send queue |
no test coverage detected