Mechanically convert to if_inc_counter().
This commit is contained in:
parent
6625a48525
commit
e2efa70e1c
@ -731,7 +731,7 @@ glc_rxintr(struct glc_softc *sc)
|
||||
restart_rxdma = 1;
|
||||
|
||||
if (sc->sc_rxdmadesc[i].rxerror & GELIC_RXERRORS) {
|
||||
ifp->if_ierrors++;
|
||||
if_inc_counter(ifp, IFCOUNTER_IERRORS, 1);
|
||||
goto requeue;
|
||||
}
|
||||
|
||||
@ -747,11 +747,11 @@ glc_rxintr(struct glc_softc *sc)
|
||||
}
|
||||
|
||||
if (glc_add_rxbuf(sc, i)) {
|
||||
ifp->if_ierrors++;
|
||||
if_inc_counter(ifp, IFCOUNTER_IERRORS, 1);
|
||||
goto requeue;
|
||||
}
|
||||
|
||||
ifp->if_ipackets++;
|
||||
if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1);
|
||||
m->m_pkthdr.rcvif = ifp;
|
||||
m->m_len = sc->sc_rxdmadesc[i].valid_size;
|
||||
m->m_pkthdr.len = m->m_len;
|
||||
@ -810,7 +810,7 @@ glc_txintr(struct glc_softc *sc)
|
||||
!= 0) {
|
||||
lv1_net_stop_tx_dma(sc->sc_bus, sc->sc_dev, 0);
|
||||
kickstart = 1;
|
||||
ifp->if_oerrors++;
|
||||
if_inc_counter(ifp, IFCOUNTER_OERRORS, 1);
|
||||
}
|
||||
|
||||
if (sc->sc_txdmadesc[txs->txs_lastdesc].cmd_stat &
|
||||
@ -818,7 +818,7 @@ glc_txintr(struct glc_softc *sc)
|
||||
kickstart = 1;
|
||||
|
||||
STAILQ_INSERT_TAIL(&sc->sc_txfreeq, txs, txs_q);
|
||||
ifp->if_opackets++;
|
||||
if_inc_counter(ifp, IFCOUNTER_OPACKETS, 1);
|
||||
progress = 1;
|
||||
}
|
||||
|
||||
|
@ -345,13 +345,13 @@ llan_intr(void *xsc)
|
||||
|
||||
/* llan_add_rxbuf does DMA sync and unload as well as requeue */
|
||||
if (llan_add_rxbuf(sc, rx) != 0) {
|
||||
sc->ifp->if_ierrors++;
|
||||
if_inc_counter(sc->ifp, IFCOUNTER_IERRORS, 1);
|
||||
phyp_hcall(H_ADD_LOGICAL_LAN_BUFFER, sc->unit,
|
||||
rx->rx_bufdesc);
|
||||
continue;
|
||||
}
|
||||
|
||||
sc->ifp->if_ipackets++;
|
||||
if_inc_counter(sc->ifp, IFCOUNTER_IPACKETS, 1);
|
||||
m_adj(m, sc->rx_buf[sc->rx_dma_slot].offset);
|
||||
m->m_len = sc->rx_buf[sc->rx_dma_slot].length;
|
||||
m->m_pkthdr.rcvif = sc->ifp;
|
||||
|
Loading…
Reference in New Issue
Block a user