diff options
| author | Max Laier <mlaier@FreeBSD.org> | 2004-07-02 12:16:02 +0000 |
|---|---|---|
| committer | Max Laier <mlaier@FreeBSD.org> | 2004-07-02 12:16:02 +0000 |
| commit | 7929aa036c85b3ff4badebf421426e81b3e1e652 (patch) | |
| tree | 65f0224543a217107b8c639eebd90136c5b1386d /sys/dev/bfe/if_bfe.c | |
| parent | 5a3af8fce5d45be8639fdbdaea79e3df1b9378d3 (diff) | |
Notes
Diffstat (limited to 'sys/dev/bfe/if_bfe.c')
| -rw-r--r-- | sys/dev/bfe/if_bfe.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/bfe/if_bfe.c b/sys/dev/bfe/if_bfe.c index a3a44dc73a19..7a39b4c040f9 100644 --- a/sys/dev/bfe/if_bfe.c +++ b/sys/dev/bfe/if_bfe.c @@ -402,7 +402,9 @@ bfe_attach(device_t dev) ifp->if_init = bfe_init; ifp->if_mtu = ETHERMTU; ifp->if_baudrate = 100000000; - ifp->if_snd.ifq_maxlen = BFE_TX_QLEN; + IFQ_SET_MAXLEN(&ifp->if_snd, BFE_TX_QLEN); + ifp->if_snd.ifq_drv_maxlen = BFE_TX_QLEN; + IFQ_SET_READY(&ifp->if_snd); bfe_get_config(sc); @@ -1256,7 +1258,7 @@ bfe_intr(void *xsc) bfe_txeof(sc); /* We have packets pending, fire them out */ - if (ifp->if_flags & IFF_RUNNING && ifp->if_snd.ifq_head != NULL) + if (ifp->if_flags & IFF_RUNNING && !IFQ_DRV_IS_EMPTY(&ifp->if_snd)) bfe_start(ifp); BFE_UNLOCK(sc); @@ -1375,7 +1377,7 @@ bfe_start(struct ifnet *ifp) } while(sc->bfe_tx_ring[idx].bfe_mbuf == NULL) { - IF_DEQUEUE(&ifp->if_snd, m_head); + IFQ_DRV_DEQUEUE(&ifp->if_snd, m_head); if(m_head == NULL) break; @@ -1384,7 +1386,7 @@ bfe_start(struct ifnet *ifp) * enough room, let the chip drain the ring. */ if(bfe_encap(sc, m_head, &idx)) { - IF_PREPEND(&ifp->if_snd, m_head); + IFQ_DRV_PREPEND(&ifp->if_snd, m_head); ifp->if_flags |= IFF_OACTIVE; break; } |
