| 707 | } |
| 708 | |
| 709 | int |
| 710 | idpf_vc_vectors_dealloc(struct idpf_vport *vport) |
| 711 | { |
| 712 | struct idpf_adapter *adapter = vport->adapter; |
| 713 | struct virtchnl2_alloc_vectors *alloc_vec; |
| 714 | struct virtchnl2_vector_chunks *vcs; |
| 715 | struct idpf_cmd_info args; |
| 716 | int err, len; |
| 717 | |
| 718 | alloc_vec = vport->recv_vectors; |
| 719 | vcs = &alloc_vec->vchunks; |
| 720 | |
| 721 | len = sizeof(struct virtchnl2_vector_chunks) + |
| 722 | (vcs->num_vchunks - 1) * sizeof(struct virtchnl2_vector_chunk); |
| 723 | |
| 724 | args.ops = VIRTCHNL2_OP_DEALLOC_VECTORS; |
| 725 | args.in_args = (uint8_t *)vcs; |
| 726 | args.in_args_size = len; |
| 727 | args.out_buffer = adapter->mbx_resp; |
| 728 | args.out_size = IDPF_DFLT_MBX_BUF_SIZE; |
| 729 | err = idpf_vc_cmd_execute(adapter, &args); |
| 730 | if (err != 0) |
| 731 | DRV_LOG(ERR, "Failed to execute command VIRTCHNL2_OP_DEALLOC_VECTORS"); |
| 732 | |
| 733 | return err; |
| 734 | } |
| 735 | |
| 736 | int |
| 737 | idpf_vc_ena_dis_one_queue(struct idpf_vport *vport, uint16_t qid, |
no test coverage detected