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

Function i40e_aq_queue_shutdown

dpdk/drivers/net/i40e/base/i40e_common.c:412–428  ·  view source on GitHub ↗

* 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. **/

Source from the content-addressed store, hash-verified

410 * or not the driver is unloading as well.
411 **/
412enum 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

Callers 2

i40e_dev_closeFunction · 0.85
i40e_shutdown_adminqFunction · 0.85

Calls 2

i40e_asq_send_commandFunction · 0.85

Tested by

no test coverage detected