diff options
author | glebius <glebius@FreeBSD.org> | 2014-09-19 03:51:26 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2014-09-19 03:51:26 +0000 |
commit | b3b337a80e78f4cc2d0c75f98e4685bee9c749c9 (patch) | |
tree | 6899fa7510de1719ea0a76790446b61cd2d300fe /sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c | |
parent | 094cca2b36ac9809749d6a0b76bcd37556939c00 (diff) | |
download | FreeBSD-src-b3b337a80e78f4cc2d0c75f98e4685bee9c749c9.zip FreeBSD-src-b3b337a80e78f4cc2d0c75f98e4685bee9c749c9.tar.gz |
Mechanically convert to if_inc_counter().
Diffstat (limited to 'sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c')
-rw-r--r-- | sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c | 6 |
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 3b60c3f..41d869f 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 |