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
common/sfc_efx/base: update EF100 registers definitions
[dpdk.git]
/
drivers
/
common
/
sfc_efx
/
base
/
ef10_ev.c
diff --git
a/drivers/common/sfc_efx/base/ef10_ev.c
b/drivers/common/sfc_efx/base/ef10_ev.c
index
aec1c46
..
ba07894
100644
(file)
--- a/
drivers/common/sfc_efx/base/ef10_ev.c
+++ b/
drivers/common/sfc_efx/base/ef10_ev.c
@@
-1,6
+1,6
@@
/* SPDX-License-Identifier: BSD-3-Clause
*
/* SPDX-License-Identifier: BSD-3-Clause
*
- * Copyright(c) 2019-202
0
Xilinx, Inc.
+ * Copyright(c) 2019-202
1
Xilinx, Inc.
* Copyright(c) 2012-2019 Solarflare Communications Inc.
*/
* Copyright(c) 2012-2019 Solarflare Communications Inc.
*/
@@
-118,15
+118,18
@@
ef10_ev_qcreate(
__in uint32_t id,
__in uint32_t us,
__in uint32_t flags,
__in uint32_t id,
__in uint32_t us,
__in uint32_t flags,
+ __in uint32_t irq,
__in efx_evq_t *eep)
{
efx_nic_cfg_t *encp = &(enp->en_nic_cfg);
__in efx_evq_t *eep)
{
efx_nic_cfg_t *encp = &(enp->en_nic_cfg);
- uint32_t
irq
;
+ uint32_t
target_evq = 0
;
efx_rc_t rc;
boolean_t low_latency;
_NOTE(ARGUNUSED(id)) /* buftbl id managed by MC */
efx_rc_t rc;
boolean_t low_latency;
_NOTE(ARGUNUSED(id)) /* buftbl id managed by MC */
+ EFSYS_ASSERT((flags & EFX_EVQ_FLAGS_EXTENDED_WIDTH) == 0);
+
/*
* NO_CONT_EV mode is only requested from the firmware when creating
* receive queues, but here it needs to be specified at event queue
/*
* NO_CONT_EV mode is only requested from the firmware when creating
* receive queues, but here it needs to be specified at event queue
@@
-155,13
+158,14
@@
ef10_ev_qcreate(
/* INIT_EVQ expects function-relative vector number */
if ((flags & EFX_EVQ_FLAGS_NOTIFY_MASK) ==
EFX_EVQ_FLAGS_NOTIFY_INTERRUPT) {
/* INIT_EVQ expects function-relative vector number */
if ((flags & EFX_EVQ_FLAGS_NOTIFY_MASK) ==
EFX_EVQ_FLAGS_NOTIFY_INTERRUPT) {
- irq = index;
+ /* IRQ number is specified by caller */
} else if (index == EFX_EF10_ALWAYS_INTERRUPTING_EVQ_INDEX) {
} else if (index == EFX_EF10_ALWAYS_INTERRUPTING_EVQ_INDEX) {
- irq = index;
+ /* Use the first interrupt for always interrupting EvQ */
+ irq = 0;
flags = (flags & ~EFX_EVQ_FLAGS_NOTIFY_MASK) |
EFX_EVQ_FLAGS_NOTIFY_INTERRUPT;
} else {
flags = (flags & ~EFX_EVQ_FLAGS_NOTIFY_MASK) |
EFX_EVQ_FLAGS_NOTIFY_INTERRUPT;
} else {
-
ir
q = EFX_EF10_ALWAYS_INTERRUPTING_EVQ_INDEX;
+
target_ev
q = EFX_EF10_ALWAYS_INTERRUPTING_EVQ_INDEX;
}
/*
}
/*
@@
-185,8
+189,8
@@
ef10_ev_qcreate(
* decision and low_latency hint is ignored.
*/
low_latency = encp->enc_datapath_cap_evb ? 0 : 1;
* decision and low_latency hint is ignored.
*/
low_latency = encp->enc_datapath_cap_evb ? 0 : 1;
- rc = efx_mcdi_init_evq(enp, index, esmp, ndescs, irq,
us, flag
s,
- low_latency);
+ rc = efx_mcdi_init_evq(enp, index, esmp, ndescs, irq,
target_evq, u
s,
+
flags,
low_latency);
if (rc != 0)
goto fail2;
if (rc != 0)
goto fail2;