Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/bnxt/if_bnxt.c
Show First 20 Lines • Show All 1,528 Lines • ▼ Show 20 Lines | if (rc) { | ||||
device_printf(iflib_get_dev(ctx), | device_printf(iflib_get_dev(ctx), | ||||
"Failed to register default completion ring handler\n"); | "Failed to register default completion ring handler\n"); | ||||
return rc; | return rc; | ||||
} | } | ||||
for (i=0; i<softc->scctx->isc_nrxqsets; i++) { | for (i=0; i<softc->scctx->isc_nrxqsets; i++) { | ||||
snprintf(irq_name, sizeof(irq_name), "rxq%d", i); | snprintf(irq_name, sizeof(irq_name), "rxq%d", i); | ||||
rc = iflib_irq_alloc_generic(ctx, &softc->rx_cp_rings[i].irq, | rc = iflib_irq_alloc_generic(ctx, &softc->rx_cp_rings[i].irq, | ||||
softc->rx_cp_rings[i].ring.id + 1, IFLIB_INTR_RX, | softc->rx_cp_rings[i].ring.id + 1, IFLIB_INTR_RXTX, | ||||
bnxt_handle_rx_cp, &softc->rx_cp_rings[i], i, irq_name); | bnxt_handle_rx_cp, &softc->rx_cp_rings[i], i, irq_name); | ||||
if (rc) { | if (rc) { | ||||
device_printf(iflib_get_dev(ctx), | device_printf(iflib_get_dev(ctx), | ||||
"Failed to register RX completion ring handler\n"); | "Failed to register RX completion ring handler\n"); | ||||
i--; | i--; | ||||
goto fail; | goto fail; | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 962 Lines • Show Last 20 Lines |