aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/hyperv
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/hyperv
parentd3c24fcffe1e1fab13dd9763580f96fac214e36d (diff)
downloadsrc-c8dfaf382fa6df9dc6fd1e1c3356e0c8bf607e6a.tar.gz
src-c8dfaf382fa6df9dc6fd1e1c3356e0c8bf607e6a.zip
Mechanically convert to if_inc_counter().
Notes
Notes: svn path=/head/; revision=271849
Diffstat (limited to 'sys/dev/hyperv')
-rw-r--r--sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c b/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
index 3b60c3fd0574..41d869fe87b8 100644
--- a/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
+++ b/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
@@ -500,7 +500,7 @@ retry_send:
ret = hv_rf_on_send(device_ctx, packet);
if (ret == 0) {
- ifp->if_opackets++;
+ if_inc_counter(ifp, IFCOUNTER_OPACKETS, 1);
/* if bpf && mc_head, call bpf_mtap code */
if (mc_head) {
ETHER_BPF_MTAP(ifp, mc_head);
@@ -702,7 +702,7 @@ netvsc_recv(struct hv_device *device_ctx, netvsc_packet *packet)
* messages (not just data messages) will trigger a response.
*/
- ifp->if_ipackets++;
+ if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1);
/* We're not holding the lock here, so don't release it */
(*ifp->if_input)(ifp, m_new);
@@ -988,7 +988,7 @@ hn_watchdog(struct ifnet *ifp)
printf("hn%d: watchdog timeout -- resetting\n", sc->hn_unit);
hn_ifinit(sc); /*???*/
- ifp->if_oerrors++;
+ if_inc_counter(ifp, IFCOUNTER_OERRORS, 1);
}
#endif