mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Mechanically convert to if_inc_counter().
This commit is contained in:
parent
71f3caaf31
commit
5941b6d120
1 changed files with 9 additions and 9 deletions
|
|
@ -1430,7 +1430,7 @@ tl_intvec_rxeof(xsc, type)
|
|||
total_len = cur_rx->tl_ptr->tlist_frsize;
|
||||
|
||||
if (tl_newbuf(sc, cur_rx) == ENOBUFS) {
|
||||
ifp->if_ierrors++;
|
||||
if_inc_counter(ifp, IFCOUNTER_IERRORS, 1);
|
||||
cur_rx->tl_ptr->tlist_frsize = MCLBYTES;
|
||||
cur_rx->tl_ptr->tlist_cstat = TL_CSTAT_READY;
|
||||
cur_rx->tl_ptr->tl_frag.tlist_dcnt = MCLBYTES;
|
||||
|
|
@ -1726,13 +1726,13 @@ tl_stats_update(xsc)
|
|||
*p++ = CSR_READ_4(sc, TL_DIO_DATA);
|
||||
*p++ = CSR_READ_4(sc, TL_DIO_DATA);
|
||||
|
||||
ifp->if_opackets += tl_tx_goodframes(tl_stats);
|
||||
ifp->if_collisions += tl_stats.tl_tx_single_collision +
|
||||
tl_stats.tl_tx_multi_collision;
|
||||
ifp->if_ipackets += tl_rx_goodframes(tl_stats);
|
||||
ifp->if_ierrors += tl_stats.tl_crc_errors + tl_stats.tl_code_errors +
|
||||
tl_rx_overrun(tl_stats);
|
||||
ifp->if_oerrors += tl_tx_underrun(tl_stats);
|
||||
if_inc_counter(ifp, IFCOUNTER_OPACKETS, tl_tx_goodframes(tl_stats));
|
||||
if_inc_counter(ifp, IFCOUNTER_COLLISIONS,
|
||||
tl_stats.tl_tx_single_collision + tl_stats.tl_tx_multi_collision);
|
||||
if_inc_counter(ifp, IFCOUNTER_IPACKETS, tl_rx_goodframes(tl_stats));
|
||||
if_inc_counter(ifp, IFCOUNTER_IERRORS, tl_stats.tl_crc_errors +
|
||||
tl_stats.tl_code_errors + tl_rx_overrun(tl_stats));
|
||||
if_inc_counter(ifp, IFCOUNTER_OERRORS, tl_tx_underrun(tl_stats));
|
||||
|
||||
if (tl_tx_underrun(tl_stats)) {
|
||||
u_int8_t tx_thresh;
|
||||
|
|
@ -2186,7 +2186,7 @@ tl_watchdog(sc)
|
|||
|
||||
if_printf(ifp, "device timeout\n");
|
||||
|
||||
ifp->if_oerrors++;
|
||||
if_inc_counter(ifp, IFCOUNTER_OERRORS, 1);
|
||||
|
||||
tl_softreset(sc, 1);
|
||||
tl_init_locked(sc);
|
||||
|
|
|
|||
Loading…
Reference in a new issue