| 458 | } |
| 459 | |
| 460 | static int |
| 461 | ice_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 | |
| 487 | static int |
| 488 | ice_dcf_check_reset_done(struct ice_dcf_hw *hw) |
no test coverage detected