summaryrefslogtreecommitdiffstats
path: root/sys/dev/ixgbe
diff options
context:
space:
mode:
authorjfv <jfv@FreeBSD.org>2013-03-04 23:15:07 +0000
committerjfv <jfv@FreeBSD.org>2013-03-04 23:15:07 +0000
commit879e5167527ec193992dbc114135f677cd7ea3a7 (patch)
treede5e6f738863d7abcc197ad7f7d0bdb493c63dd4 /sys/dev/ixgbe
parent7b20f97709b524b5e1151a615a7e2c2ffabc3ceb (diff)
downloadFreeBSD-src-879e5167527ec193992dbc114135f677cd7ea3a7.zip
FreeBSD-src-879e5167527ec193992dbc114135f677cd7ea3a7.tar.gz
Fix a small, but important bug, a task drain was mistakenly
being compiled only when setting LEGACY_TX, this means you would not get the drain when needed on detach!! Thanks to Bryan Venteicher (bryanv@freebsd.org) for catching this little gremlin!! :)
Diffstat (limited to 'sys/dev/ixgbe')
-rw-r--r--sys/dev/ixgbe/ixgbe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ixgbe/ixgbe.c b/sys/dev/ixgbe/ixgbe.c
index 19edbd4..9977803 100644
--- a/sys/dev/ixgbe/ixgbe.c
+++ b/sys/dev/ixgbe/ixgbe.c
@@ -654,7 +654,7 @@ ixgbe_detach(device_t dev)
for (int i = 0; i < adapter->num_queues; i++, que++, txr++) {
if (que->tq) {
-#ifdef IXGBE_LEGACY_TX
+#ifndef IXGBE_LEGACY_TX
taskqueue_drain(que->tq, &txr->txq_task);
#endif
taskqueue_drain(que->tq, &que->que_task);
OpenPOWER on IntegriCloud