git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vfio: allow DMA map to the default container
[dpdk.git]
/
drivers
/
net
/
sfc
/
sfc_ev.c
diff --git
a/drivers/net/sfc/sfc_ev.c
b/drivers/net/sfc/sfc_ev.c
index
0ca502e
..
5992833
100644
(file)
--- a/
drivers/net/sfc/sfc_ev.c
+++ b/
drivers/net/sfc/sfc_ev.c
@@
-599,7
+599,8
@@
sfc_ev_qstart(struct sfc_evq *evq, unsigned int hw_index)
evq->evq_index = hw_index;
/* Clear all events */
evq->evq_index = hw_index;
/* Clear all events */
- (void)memset((void *)esmp->esm_base, 0xff, EFX_EVQ_SIZE(evq->entries));
+ (void)memset((void *)esmp->esm_base, 0xff,
+ efx_evq_size(sa->nic, evq->entries));
if (sa->intr.lsc_intr && hw_index == sa->mgmt_evq_index)
evq_flags |= EFX_EVQ_FLAGS_NOTIFY_INTERRUPT;
if (sa->intr.lsc_intr && hw_index == sa->mgmt_evq_index)
evq_flags |= EFX_EVQ_FLAGS_NOTIFY_INTERRUPT;
@@
-823,7
+824,8
@@
sfc_ev_qinit(struct sfc_adapter *sa,
/* Allocate DMA space */
rc = sfc_dma_alloc(sa, sfc_evq_type2str(type), type_index,
/* Allocate DMA space */
rc = sfc_dma_alloc(sa, sfc_evq_type2str(type), type_index,
- EFX_EVQ_SIZE(evq->entries), socket_id, &evq->mem);
+ efx_evq_size(sa->nic, evq->entries), socket_id,
+ &evq->mem);
if (rc != 0)
goto fail_dma_alloc;
if (rc != 0)
goto fail_dma_alloc;
@@
-897,7
+899,7
@@
sfc_ev_attach(struct sfc_adapter *sa)
sa->mgmt_evq_index = 0;
rte_spinlock_init(&sa->mgmt_evq_lock);
sa->mgmt_evq_index = 0;
rte_spinlock_init(&sa->mgmt_evq_lock);
- rc = sfc_ev_qinit(sa, SFC_EVQ_TYPE_MGMT, 0,
SFC_MGMT_EVQ_ENTRIES
,
+ rc = sfc_ev_qinit(sa, SFC_EVQ_TYPE_MGMT, 0,
sa->evq_min_entries
,
sa->socket_id, &sa->mgmt_evq);
if (rc != 0)
goto fail_mgmt_evq_init;
sa->socket_id, &sa->mgmt_evq);
if (rc != 0)
goto fail_mgmt_evq_init;