Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/axgbe/if_axgbe_pci.c
Show First 20 Lines • Show All 1,916 Lines • ▼ Show 20 Lines | axgbe_if_msix_intr_assign(if_ctx_t ctx, int msix) | ||||
pdata->per_channel_irq = 1; | pdata->per_channel_irq = 1; | ||||
pdata->channel_irq_mode = XGBE_IRQ_MODE_LEVEL; | pdata->channel_irq_mode = XGBE_IRQ_MODE_LEVEL; | ||||
rid++; | rid++; | ||||
for (i = 0; i < scctx->isc_nrxqsets; i++, rid++) { | for (i = 0; i < scctx->isc_nrxqsets; i++, rid++) { | ||||
channel = pdata->channel[i]; | channel = pdata->channel[i]; | ||||
snprintf(buf, sizeof(buf), "rxq%d", i); | snprintf(buf, sizeof(buf), "rxq%d", i); | ||||
error = iflib_irq_alloc_generic(ctx, &irq, rid, IFLIB_INTR_RX, | error = iflib_irq_alloc_generic(ctx, &irq, rid, IFLIB_INTR_RXTX, | ||||
axgbe_msix_que, channel, channel->queue_index, buf); | axgbe_msix_que, channel, channel->queue_index, buf); | ||||
if (error) { | if (error) { | ||||
axgbe_error("Failed to allocated que int %d err: %d\n", | axgbe_error("Failed to allocated que int %d err: %d\n", | ||||
i, error); | i, error); | ||||
return (error); | return (error); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 406 Lines • Show Last 20 Lines |