diff options
author | Matt Macy <mmacy@FreeBSD.org> | 2018-05-16 22:25:47 +0000 |
---|---|---|
committer | Matt Macy <mmacy@FreeBSD.org> | 2018-05-16 22:25:47 +0000 |
commit | 2aa6f526def5f344d1624249b0a7121a9c43e403 (patch) | |
tree | e14f8ddb4c9bbdfe21b7c36d26fb961e08dc0ee0 /sys/net | |
parent | 6e258ed36334328ac67e27ce9973a5cb8099cd21 (diff) | |
download | src-2aa6f526def5f344d1624249b0a7121a9c43e403.tar.gz src-2aa6f526def5f344d1624249b0a7121a9c43e403.zip |
Fix !netmap build post r333686
Approved by: sbruno
Notes
Notes:
svn path=/head/; revision=333689
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/iflib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/iflib.c b/sys/net/iflib.c index 2dc2690699e9..1070eb1ab04b 100644 --- a/sys/net/iflib.c +++ b/sys/net/iflib.c @@ -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; |