Module Name: src Committed By: skrll Date: Tue Feb 4 07:35:45 UTC 2020
Modified Files: src/sys/arch/emips/ebus: if_le_ebus.c Log Message: Adopt <net/if_stats.h> To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/sys/arch/emips/ebus/if_le_ebus.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/emips/ebus/if_le_ebus.c diff -u src/sys/arch/emips/ebus/if_le_ebus.c:1.21 src/sys/arch/emips/ebus/if_le_ebus.c:1.22 --- src/sys/arch/emips/ebus/if_le_ebus.c:1.21 Thu Dec 5 05:28:09 2019 +++ src/sys/arch/emips/ebus/if_le_ebus.c Tue Feb 4 07:35:45 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: if_le_ebus.c,v 1.21 2019/12/05 05:28:09 msaitoh Exp $ */ +/* $NetBSD: if_le_ebus.c,v 1.22 2020/02/04 07:35:45 skrll Exp $ */ /*- * Copyright (c) 2010 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_le_ebus.c,v 1.21 2019/12/05 05:28:09 msaitoh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_le_ebus.c,v 1.22 2020/02/04 07:35:45 skrll Exp $"); #include "opt_inet.h" @@ -693,7 +693,7 @@ enic_rint(struct enic_softc *sc, uint32_ /* uhu?? */ printf("%s: bad recv phys %llx\n", device_xname(sc->sc_dev), (long long)phys); - ifp->if_ierrors++; + if_statinc(ifp, if_ierrors); return; /* got it, pop it */ @@ -714,7 +714,7 @@ enic_rint(struct enic_softc *sc, uint32_ len > ((sc->sc_ethercom.ec_capenable & ETHERCAP_VLAN_MTU) ? ETHER_VLAN_ENCAP_LEN + ETHERMTU + sizeof(struct ether_header) : ETHERMTU + sizeof(struct ether_header))) { - ifp->if_ierrors++; + if_statinc(ifp, if_ierrors); /* reuse it */ enic_post_recv(sc, m); @@ -755,7 +755,7 @@ void enic_tint(struct enic_softc *sc, ui /* uhu?? */ printf("%s: bad xmit phys %llx\n", device_xname(sc->sc_dev), (long long)phys); - ifp->if_oerrors++; + if_statinc(ifp, if_oerrors); return; /* got it, pop it */ @@ -771,7 +771,7 @@ void enic_tint(struct enic_softc *sc, ui sc->bxh++; #endif m_freem(m); - ifp->if_opackets++; + if_statinc(ifp, if_opackets); if (--sc->sc_no_td == 0) ifp->if_timer = 0;