Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ixgbe/if_ixv.c
Show First 20 Lines • Show All 1,024 Lines • ▼ Show 20 Lines | ixv_if_msix_intr_assign(if_ctx_t ctx, int msix) | ||||
int error, rid, vector = 0; | int error, rid, vector = 0; | ||||
char buf[16]; | char buf[16]; | ||||
for (int i = 0; i < adapter->num_rx_queues; i++, vector++, rx_que++) { | for (int i = 0; i < adapter->num_rx_queues; i++, vector++, rx_que++) { | ||||
rid = vector + 1; | rid = vector + 1; | ||||
snprintf(buf, sizeof(buf), "rxq%d", i); | snprintf(buf, sizeof(buf), "rxq%d", i); | ||||
error = iflib_irq_alloc_generic(ctx, &rx_que->que_irq, rid, | error = iflib_irq_alloc_generic(ctx, &rx_que->que_irq, rid, | ||||
IFLIB_INTR_RX, ixv_msix_que, rx_que, rx_que->rxr.me, buf); | IFLIB_INTR_RXTX, ixv_msix_que, rx_que, rx_que->rxr.me, buf); | ||||
if (error) { | if (error) { | ||||
device_printf(iflib_get_dev(ctx), | device_printf(iflib_get_dev(ctx), | ||||
"Failed to allocate que int %d err: %d", i, error); | "Failed to allocate que int %d err: %d", i, error); | ||||
adapter->num_rx_queues = i + 1; | adapter->num_rx_queues = i + 1; | ||||
goto fail; | goto fail; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 911 Lines • Show Last 20 Lines |