Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixl/if_iavf.c
Show First 20 Lines • Show All 898 Lines • ▼ Show 20 Lines | iavf_if_msix_intr_assign(if_ctx_t ctx, int msix) | ||||
} | } | ||||
/* Now set up the stations */ | /* Now set up the stations */ | ||||
for (i = 0, vector = 1; i < vsi->shared->isc_nrxqsets; i++, vector++, rx_que++) { | for (i = 0, vector = 1; i < vsi->shared->isc_nrxqsets; i++, vector++, rx_que++) { | ||||
rid = vector + 1; | rid = vector + 1; | ||||
snprintf(buf, sizeof(buf), "rxq%d", i); | snprintf(buf, sizeof(buf), "rxq%d", i); | ||||
err = iflib_irq_alloc_generic(ctx, &rx_que->que_irq, rid, | err = iflib_irq_alloc_generic(ctx, &rx_que->que_irq, rid, | ||||
IFLIB_INTR_RX, iavf_msix_que, rx_que, rx_que->rxr.me, buf); | IFLIB_INTR_RXTX, iavf_msix_que, rx_que, rx_que->rxr.me, buf); | ||||
/* XXX: Does the driver work as expected if there are fewer num_rx_queues than | /* XXX: Does the driver work as expected if there are fewer num_rx_queues than | ||||
* what's expected in the iflib context? */ | * what's expected in the iflib context? */ | ||||
if (err) { | if (err) { | ||||
device_printf(iflib_get_dev(ctx), | device_printf(iflib_get_dev(ctx), | ||||
"Failed to allocate queue RX int vector %d, err: %d\n", i, err); | "Failed to allocate queue RX int vector %d, err: %d\n", i, err); | ||||
vsi->num_rx_queues = i + 1; | vsi->num_rx_queues = i + 1; | ||||
goto fail; | goto fail; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,539 Lines • Show Last 20 Lines |