aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/if_ndis
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2014-09-19 03:51:26 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2014-09-19 03:51:26 +0000
commitc8dfaf382fa6df9dc6fd1e1c3356e0c8bf607e6a (patch)
tree6899fa7510de1719ea0a76790446b61cd2d300fe /sys/dev/if_ndis
parentd3c24fcffe1e1fab13dd9763580f96fac214e36d (diff)
downloadsrc-c8dfaf382fa6df9dc6fd1e1c3356e0c8bf607e6a.tar.gz
src-c8dfaf382fa6df9dc6fd1e1c3356e0c8bf607e6a.zip
Notes
Diffstat (limited to 'sys/dev/if_ndis')
-rw-r--r--sys/dev/if_ndis/if_ndis.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/if_ndis/if_ndis.c b/sys/dev/if_ndis/if_ndis.c
index f9ed3d08fe5b..8f235274409a 100644
--- a/sys/dev/if_ndis/if_ndis.c
+++ b/sys/dev/if_ndis/if_ndis.c
@@ -1431,7 +1431,7 @@ ndis_rxeof(adapter, packets, pktcnt)
p->np_refcnt++;
m_freem(m0);
if (m == NULL)
- ifp->if_ierrors++;
+ if_inc_counter(ifp, IFCOUNTER_IERRORS, 1);
else
m0 = m;
} else
@@ -1444,7 +1444,7 @@ ndis_rxeof(adapter, packets, pktcnt)
p->np_oob.npo_status = NDIS_STATUS_PENDING;
m_freem(m0);
if (m == NULL) {
- ifp->if_ierrors++;
+ if_inc_counter(ifp, IFCOUNTER_IERRORS, 1);
continue;
}
m0 = m;
@@ -1554,9 +1554,9 @@ ndis_txeof(adapter, packet, status)
sc->ndis_txpending++;
if (status == NDIS_STATUS_SUCCESS)
- ifp->if_opackets++;
+ if_inc_counter(ifp, IFCOUNTER_OPACKETS, 1);
else
- ifp->if_oerrors++;
+ if_inc_counter(ifp, IFCOUNTER_OERRORS, 1);
sc->ndis_tx_timer = 0;
ifp->if_drv_flags &= ~IFF_DRV_OACTIVE;
@@ -1659,7 +1659,7 @@ ndis_tick(xsc)
}
if (sc->ndis_tx_timer && --sc->ndis_tx_timer == 0) {
- sc->ifp->if_oerrors++;
+ if_inc_counter(sc->ifp, IFCOUNTER_OERRORS, 1);
device_printf(sc->ndis_dev, "watchdog timeout\n");
IoQueueWorkItem(sc->ndis_resetitem,