Replace a sc->ifp->if_snd.ifq_drv_maxlen with IFQ_SET_MAXLEN(),
and call IFQ_SET_READY(). Submitted by: brueffer
This commit is contained in:
parent
d2d9e24a89
commit
76bb9c5edb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=159621
@ -1831,8 +1831,9 @@ mxge_alloc_rings(mxge_softc_t *sc)
|
||||
|
||||
tx_ring_entries = tx_ring_size / sizeof (mcp_kreq_ether_send_t);
|
||||
rx_ring_entries = rx_ring_size / sizeof (mcp_dma_addr_t);
|
||||
sc->ifp->if_snd.ifq_maxlen = tx_ring_entries - 1;
|
||||
sc->ifp->if_snd.ifq_drv_maxlen = sc->ifp->if_snd.ifq_maxlen;
|
||||
IFQ_SET_MAXLEN(&sc->ifp->if_snd, tx_ring_entries - 1);
|
||||
IFQ_SET_READY(&sc->ifp->if_snd);
|
||||
|
||||
sc->tx.mask = tx_ring_entries - 1;
|
||||
sc->rx_small.mask = sc->rx_big.mask = rx_ring_entries - 1;
|
||||
|
Loading…
Reference in New Issue
Block a user