svn commit: r319922 - head/sys/dev/bnxt
Sean Bruno
sbruno at FreeBSD.org
Tue Jun 13 23:49:51 UTC 2017
Author: sbruno
Date: Tue Jun 13 23:49:49 2017
New Revision: 319922
URL: https://svnweb.freebsd.org/changeset/base/319922
Log:
bnxt: In case of multi queues, have unique name for different IRQs.
Submitted by: bhargava.marreddy at broadcom.com
Differential Revision: https://reviews.freebsd.org/D11149
Modified:
head/sys/dev/bnxt/if_bnxt.c
Modified: head/sys/dev/bnxt/if_bnxt.c
==============================================================================
--- head/sys/dev/bnxt/if_bnxt.c Tue Jun 13 23:16:38 2017 (r319921)
+++ head/sys/dev/bnxt/if_bnxt.c Tue Jun 13 23:49:49 2017 (r319922)
@@ -1500,6 +1500,7 @@ bnxt_msix_intr_assign(if_ctx_t ctx, int msix)
struct bnxt_softc *softc = iflib_get_softc(ctx);
int rc;
int i;
+ char irq_name[16];
rc = iflib_irq_alloc_generic(ctx, &softc->def_cp_ring.irq,
softc->def_cp_ring.ring.id + 1, IFLIB_INTR_ADMIN,
@@ -1511,9 +1512,10 @@ bnxt_msix_intr_assign(if_ctx_t ctx, int msix)
}
for (i=0; i<softc->scctx->isc_nrxqsets; i++) {
+ snprintf(irq_name, sizeof(irq_name), "rxq%d", i);
rc = iflib_irq_alloc_generic(ctx, &softc->rx_cp_rings[i].irq,
softc->rx_cp_rings[i].ring.id + 1, IFLIB_INTR_RX,
- bnxt_handle_rx_cp, &softc->rx_cp_rings[i], i, "rx_cp");
+ bnxt_handle_rx_cp, &softc->rx_cp_rings[i], i, irq_name);
if (rc) {
device_printf(iflib_get_dev(ctx),
"Failed to register RX completion ring handler\n");
More information about the svn-src-all
mailing list