ixgbe: On transmit path, prepend the unconsumed mbuf to the if_snd
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 21 May 2013 08:53:29 +0000 (16:53 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 21 May 2013 08:53:29 +0000 (16:53 +0800)
DragonFly-bug: http://bugs.dragonflybsd.org/issues/2563

sys/dev/netif/ixgbe/ixgbe.c

index 73e73c6..a3effd4 100644 (file)
@@ -706,10 +706,8 @@ ixgbe_start_locked(struct tx_ring *txr, struct ifnet * ifp)
                        break;
 
                if (ixgbe_xmit(txr, &m_head)) {
-#if 0 /* XXX: prepend to an ALTQ queue ? */
                        if (m_head != NULL)
-                               IF_PREPEND(&ifp->if_snd, m_head);
-#endif
+                               ifq_prepend(&ifp->if_snd, m_head);
                        if (txr->tx_avail <= IXGBE_QUEUE_MIN_FREE)
                                txr->queue_status |= IXGBE_QUEUE_DEPLETED;
                        break;