app/testpmd: fix use of indirect action after port close
[dpdk.git] / drivers / net / sfc / sfc_ev.c
index ed28d51..f949abb 100644 (file)
@@ -911,6 +911,7 @@ sfc_ev_qinit(struct sfc_adapter *sa,
 
        /* Allocate DMA space */
        rc = sfc_dma_alloc(sa, sfc_evq_type2str(type), type_index,
+                          EFX_NIC_DMA_ADDR_EVENT_RING,
                           efx_evq_size(sa->nic, evq->entries, sa->evq_flags),
                           socket_id, &evq->mem);
        if (rc != 0)
@@ -983,7 +984,7 @@ sfc_ev_attach(struct sfc_adapter *sa)
                goto fail_kvarg_perf_profile;
        }
 
-       sa->mgmt_evq_index = 0;
+       sa->mgmt_evq_index = sfc_mgmt_evq_sw_index(sfc_sa2shared(sa));
        rte_spinlock_init(&sa->mgmt_evq_lock);
 
        rc = sfc_ev_qinit(sa, SFC_EVQ_TYPE_MGMT, 0, sa->evq_min_entries,