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!! :)
This commit is contained in:
Jack F Vogel 2013-03-04 23:15:07 +00:00
parent 0ecc2ff0e8
commit facc592d88

View File

@ -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);