* i40e_aq_queue_shutdown * @hw: pointer to the hw struct * @unloading: is the driver unloading itself * * Tell the Firmware that we're shutting down the AdminQ and whether * or not the driver is unloading as well. **/
| 410 | * or not the driver is unloading as well. |
| 411 | **/ |
| 412 | enum i40e_status_code i40e_aq_queue_shutdown(struct i40e_hw *hw, |
| 413 | bool unloading) |
| 414 | { |
| 415 | struct i40e_aq_desc desc; |
| 416 | struct i40e_aqc_queue_shutdown *cmd = |
| 417 | (struct i40e_aqc_queue_shutdown *)&desc.params.raw; |
| 418 | enum i40e_status_code status; |
| 419 | |
| 420 | i40e_fill_default_direct_cmd_desc(&desc, |
| 421 | i40e_aqc_opc_queue_shutdown); |
| 422 | |
| 423 | if (unloading) |
| 424 | cmd->driver_unloading = CPU_TO_LE32(I40E_AQ_DRIVER_UNLOADING); |
| 425 | status = i40e_asq_send_command(hw, &desc, NULL, 0, NULL); |
| 426 | |
| 427 | return status; |
| 428 | } |
| 429 | |
| 430 | /** |
| 431 | * i40e_aq_get_set_rss_lut |
no test coverage detected