igb: Setup subqueue count properly
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 28 Jan 2013 13:08:16 +0000 (21:08 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 28 Jan 2013 13:08:16 +0000 (21:08 +0800)
sys/dev/netif/igb/if_igb.c

index b021d07..529bd3b 100644 (file)
@@ -1468,6 +1468,7 @@ igb_setup_ifp(struct igb_softc *sc)
 
        ifq_set_maxlen(&ifp->if_snd, sc->tx_rings[0].num_tx_desc - 1);
        ifq_set_ready(&ifp->if_snd);
+       ifq_set_subq_cnt(&ifp->if_snd, sc->tx_ring_cnt);
 
        ether_ifattach(ifp, sc->hw.mac.addr, NULL);