Author: mmacy
Date: Wed May 16 22:25:47 2018
New Revision: 333689
URL: https://svnweb.freebsd.org/changeset/base/333689
Log:
Fix !netmap build post r333686
Approved by: sbruno
Modified:
head/sys/net/iflib.c
Modified: head/sys/net/iflib.c
==============================================================================
--- head/sys/net/iflib.c Wed May 16 21:07:12 2018 (r333688)
+++ head/sys/net/iflib.c Wed May 16 22:25:47 2018 (r333689)
@@ -3722,12 +3722,14 @@ _task_fn_tx(void *context)
if (ctx->isc_txd_credits_update(ctx->ifc_softc, txq->ift_id,
false))
netmap_tx_irq(ifp, txq->ift_id);
else {
+#ifdef DEV_NETMAP
if (!(ctx->ifc_flags & IFC_NETMAP_TX_IRQ)) {
struct netmap_kring *kring =
NA(ctx->ifc_ifp)->tx_rings[txq->ift_id];
if (kring->nr_hwtail != nm_prev(kring->rhead,
kring->nkr_num_slots - 1))
GROUPTASK_ENQUEUE(&txq->ift_task);
}
+#endif
}
IFDI_TX_QUEUE_INTR_ENABLE(ctx, txq->ift_id);
return;
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"