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/xen/netfront/netfront.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/xen/netfront/netfront.c')
-rw-r--r-- | sys/dev/xen/netfront/netfront.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/xen/netfront/netfront.c b/sys/dev/xen/netfront/netfront.c index 9ff872c..568511b 100644 --- a/sys/dev/xen/netfront/netfront.c +++ b/sys/dev/xen/netfront/netfront.c @@ -1056,7 +1056,7 @@ xn_rxeof(struct netfront_info *np) * Break the mbuf chain first though. */ while ((m = mbufq_dequeue(&rxq)) != NULL) { - ifp->if_ipackets++; + if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1); /* * Do we really need to drop the rx lock? @@ -1147,7 +1147,7 @@ xn_txeof(struct netfront_info *np) * mbuf of the chain. */ if (!m->m_next) - ifp->if_opackets++; + if_inc_counter(ifp, IFCOUNTER_OPACKETS, 1); if (__predict_false(gnttab_query_foreign_access( np->grant_tx_ref[id]) != 0)) { panic("%s: grant id %u still in use by the " |