- /* Allocate EVQ info array */
- rc = ENOMEM;
- sa->evq_info = rte_calloc_socket("sfc-evqs", sa->evq_count,
- sizeof(struct sfc_evq_info), 0,
- sa->socket_id);
- if (sa->evq_info == NULL)
- goto fail_evqs_alloc;
-
- for (sw_index = 0; sw_index < sa->evq_count; ++sw_index) {
- rc = sfc_ev_qinit_info(sa, sw_index);
- if (rc != 0)
- goto fail_ev_qinit_info;
- }
-
- rc = sfc_ev_qinit(sa, sa->mgmt_evq_index, SFC_MGMT_EVQ_ENTRIES,
- sa->socket_id);
+ rc = sfc_ev_qinit(sa, SFC_EVQ_TYPE_MGMT, 0, SFC_MGMT_EVQ_ENTRIES,
+ sa->socket_id, &sa->mgmt_evq);