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

Function idpf_vc_vectors_dealloc

dpdk/drivers/common/idpf/idpf_common_virtchnl.c:709–734  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

707}
708
709int
710idpf_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
736int
737idpf_vc_ena_dis_one_queue(struct idpf_vport *vport, uint16_t qid,

Callers 4

cpfl_dev_startFunction · 0.85
cpfl_dev_stopFunction · 0.85
idpf_dev_startFunction · 0.85
idpf_dev_stopFunction · 0.85

Calls 1

idpf_vc_cmd_executeFunction · 0.85

Tested by

no test coverage detected