When deciding whether or not to call tqg_attach_cpu(), reference rid

directly.

ref: c9b47b468b

Submitted by:	mmacy@nextbsd.org
This commit is contained in:
Sean Bruno 2016-10-18 13:29:30 +00:00
parent 8b2a1db901
commit add6f7d069

View File

@ -4327,6 +4327,7 @@ iflib_irq_alloc_generic(if_ctx_t ctx, if_irq_t irq, int rid,
void *q;
info = &ctx->ifc_filter_info;
tqrid = rid;
switch (type) {
/* XXX merge tx/rx for netmap? */
@ -4335,7 +4336,6 @@ iflib_irq_alloc_generic(if_ctx_t ctx, if_irq_t irq, int rid,
info = &ctx->ifc_txqs[qid].ift_filter_info;
gtask = &ctx->ifc_txqs[qid].ift_task;
tqg = qgroup_if_io_tqg;
tqrid = irq->ii_rid;
fn = _task_fn_tx;
break;
case IFLIB_INTR_RX:
@ -4343,7 +4343,6 @@ iflib_irq_alloc_generic(if_ctx_t ctx, if_irq_t irq, int rid,
info = &ctx->ifc_rxqs[qid].ifr_filter_info;
gtask = &ctx->ifc_rxqs[qid].ifr_task;
tqg = qgroup_if_io_tqg;
tqrid = irq->ii_rid;
fn = _task_fn_rx;
break;
case IFLIB_INTR_ADMIN:
@ -4351,7 +4350,6 @@ iflib_irq_alloc_generic(if_ctx_t ctx, if_irq_t irq, int rid,
info = &ctx->ifc_filter_info;
gtask = &ctx->ifc_admin_task;
tqg = qgroup_if_config_tqg;
tqrid = -1;
fn = _task_fn_admin;
break;
default: