Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ice/if_ice_iflib.c
Show First 20 Lines • Show All 1,487 Lines • ▼ Show 20 Lines | ice_if_msix_intr_assign(if_ctx_t ctx, int msix) | ||||
for (i = 0, vector = 1; i < vsi->num_rx_queues; i++, vector++) { | for (i = 0, vector = 1; i < vsi->num_rx_queues; i++, vector++) { | ||||
struct ice_rx_queue *rxq = &vsi->rx_queues[i]; | struct ice_rx_queue *rxq = &vsi->rx_queues[i]; | ||||
struct ice_tx_queue *txq = &vsi->tx_queues[i]; | struct ice_tx_queue *txq = &vsi->tx_queues[i]; | ||||
int rid = vector + 1; | int rid = vector + 1; | ||||
char irq_name[16]; | char irq_name[16]; | ||||
snprintf(irq_name, sizeof(irq_name), "rxq%d", i); | snprintf(irq_name, sizeof(irq_name), "rxq%d", i); | ||||
err = iflib_irq_alloc_generic(ctx, &sc->irqvs[vector].irq, rid, | err = iflib_irq_alloc_generic(ctx, &sc->irqvs[vector].irq, rid, | ||||
IFLIB_INTR_RX, ice_msix_que, | IFLIB_INTR_RXTX, ice_msix_que, | ||||
rxq, rxq->me, irq_name); | rxq, rxq->me, irq_name); | ||||
if (err) { | if (err) { | ||||
device_printf(sc->dev, | device_printf(sc->dev, | ||||
"Failed to allocate q int %d err: %s\n", | "Failed to allocate q int %d err: %s\n", | ||||
i, ice_err_str(err)); | i, ice_err_str(err)); | ||||
vector--; | vector--; | ||||
i--; | i--; | ||||
goto fail; | goto fail; | ||||
▲ Show 20 Lines • Show All 1,429 Lines • Show Last 20 Lines |