Page MenuHomeFreeBSD

D46061.diff
No OneTemporary

D46061.diff

diff --git a/sys/net/iflib.c b/sys/net/iflib.c
--- a/sys/net/iflib.c
+++ b/sys/net/iflib.c
@@ -6424,15 +6424,11 @@
device_t dev;
struct grouptask *gtask;
struct resource *res;
- struct taskqgroup *tqg;
- void *q;
int err, tqrid;
bool rx_only;
- q = &ctx->ifc_rxqs[0];
- info = &rxq[0].ifr_filter_info;
- gtask = &rxq[0].ifr_task;
- tqg = qgroup_if_io_tqg;
+ info = &rxq->ifr_filter_info;
+ gtask = &rxq->ifr_task;
tqrid = *rid;
rx_only = (ctx->ifc_sctx->isc_flags & IFLIB_SINGLE_IRQ_RX_ONLY) != 0;
@@ -6440,17 +6436,17 @@
info->ifi_filter = filter;
info->ifi_filter_arg = filter_arg;
info->ifi_task = gtask;
- info->ifi_ctx = rx_only ? ctx : q;
+ info->ifi_ctx = rxq;
dev = ctx->ifc_dev;
/* We allocate a single interrupt resource */
- err = _iflib_irq_alloc(ctx, irq, tqrid, rx_only ? iflib_fast_intr_ctx :
+ err = _iflib_irq_alloc(ctx, irq, tqrid, rx_only ? iflib_fast_intr :
iflib_fast_intr_rxtx, NULL, info, name);
if (err != 0)
return (err);
- NET_GROUPTASK_INIT(gtask, 0, _task_fn_rx, q);
+ NET_GROUPTASK_INIT(gtask, 0, _task_fn_rx, rxq);
res = irq->ii_res;
- taskqgroup_attach(tqg, gtask, q, dev, res, name);
+ taskqgroup_attach(qgroup_if_io_tqg, gtask, rxq, dev, res, name);
GROUPTASK_INIT(&txq->ift_task, 0, _task_fn_tx, txq);
taskqgroup_attach(qgroup_if_io_tqg, &txq->ift_task, txq, dev, res,

File Metadata

Mime Type
text/plain
Expires
Sat, Jan 25, 12:21 AM (18 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16111594
Default Alt Text
D46061.diff (1 KB)

Event Timeline