Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/broadcom Adopt <net/if_stats.h>
details: https://anonhg.NetBSD.org/src/rev/8df44be1152d
branches: trunk
changeset: 744481:8df44be1152d
user: skrll <skrll%NetBSD.org@localhost>
date: Mon Feb 03 08:00:35 2020 +0000
description:
Adopt <net/if_stats.h>
diffstat:
sys/arch/arm/broadcom/bcm53xx_eth.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (44 lines):
diff -r e4c0021467a0 -r 8df44be1152d sys/arch/arm/broadcom/bcm53xx_eth.c
--- a/sys/arch/arm/broadcom/bcm53xx_eth.c Mon Feb 03 07:47:53 2020 +0000
+++ b/sys/arch/arm/broadcom/bcm53xx_eth.c Mon Feb 03 08:00:35 2020 +0000
@@ -35,7 +35,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: bcm53xx_eth.c,v 1.39 2019/10/30 10:12:37 msaitoh Exp $");
+__KERNEL_RCSID(1, "$NetBSD: bcm53xx_eth.c,v 1.40 2020/02/03 08:00:35 skrll Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -1119,7 +1119,7 @@
#ifdef BCMETH_RCVMAGIC
if (rxsts == BCMETH_RCVMAGIC) {
- ifp->if_ierrors++;
+ if_statinc(ifp, if_ierrors);
if ((m->m_ext.ext_paddr >> 28) == 8) {
BCMETH_EVCNT_INCR(sc->sc_ev_rx_badmagic_lo);
} else {
@@ -1137,7 +1137,7 @@
* We encountered an error, take the mbufs and add them
* to the rx bufcache so we can quickly reuse them.
*/
- ifp->if_ierrors++;
+ if_statinc(ifp, if_ierrors);
do {
struct mbuf *m0 = m->m_next;
m->m_next = NULL;
@@ -1662,10 +1662,10 @@
__func__, m, m->m_pkthdr.len);
#endif
bpf_mtap(ifp, m, BPF_D_OUT);
- ifp->if_opackets++;
- ifp->if_obytes += m->m_pkthdr.len;
+ if_statinc(ifp, if_opackets);
+ if_statadd(ifp, if_obytes, m->m_pkthdr.len);
if (m->m_flags & M_MCAST)
- ifp->if_omcasts++;
+ if_statinc(ifp, if_omcasts);
m_freem(m);
}
Home |
Main Index |
Thread Index |
Old Index