MCPcopy Create free account
hub / github.com/F-Stack/f-stack / i40e_shutdown_adminq

Function i40e_shutdown_adminq

dpdk/drivers/net/i40e/base/i40e_adminq.c:763–779  ·  view source on GitHub ↗

* i40e_shutdown_adminq - shutdown routine for the Admin Queue * @hw: pointer to the hardware structure **/

Source from the content-addressed store, hash-verified

761 * @hw: pointer to the hardware structure
762 **/
763enum 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

Callers 2

eth_i40e_dev_initFunction · 0.85
i40e_dev_closeFunction · 0.85

Calls 4

i40e_check_asq_aliveFunction · 0.85
i40e_aq_queue_shutdownFunction · 0.85
i40e_shutdown_asqFunction · 0.85
i40e_shutdown_arqFunction · 0.85

Tested by

no test coverage detected