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

Function ice_dcf_mode_disable

dpdk/drivers/net/ice/ice_dcf.c:460–485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458}
459
460static int
461ice_dcf_mode_disable(struct ice_dcf_hw *hw)
462{
463 int err;
464
465 if (hw->resetting)
466 return 0;
467
468 err = ice_dcf_send_cmd_req_no_irq(hw, VIRTCHNL_OP_DCF_DISABLE,
469 NULL, 0);
470 if (err) {
471 PMD_DRV_LOG(ERR, "Failed to send msg OP_DCF_DISABLE");
472 return err;
473 }
474
475 err = ice_dcf_recv_cmd_rsp_no_irq(hw, VIRTCHNL_OP_DCF_DISABLE,
476 hw->arq_buf, ICE_DCF_AQ_BUF_SZ, NULL);
477 if (err) {
478 PMD_DRV_LOG(ERR,
479 "Failed to get response of OP_DCF_DISABLE %d",
480 err);
481 return -1;
482 }
483
484 return 0;
485}
486
487static int
488ice_dcf_check_reset_done(struct ice_dcf_hw *hw)

Callers 2

ice_dcf_init_hwFunction · 0.85
ice_dcf_uninit_hwFunction · 0.85

Calls 2

Tested by

no test coverage detected