Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ppbus finish adoption of <net/if_stats.h>
details: https://anonhg.NetBSD.org/src/rev/58373f105d7c
branches: trunk
changeset: 744518:58373f105d7c
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Tue Feb 04 20:46:51 2020 +0000
description:
finish adoption of <net/if_stats.h>
diffstat:
sys/dev/ppbus/if_plip.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diffs (51 lines):
diff -r 54f97f3a5037 -r 58373f105d7c sys/dev/ppbus/if_plip.c
--- a/sys/dev/ppbus/if_plip.c Tue Feb 04 19:42:55 2020 +0000
+++ b/sys/dev/ppbus/if_plip.c Tue Feb 04 20:46:51 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_plip.c,v 1.35 2020/02/04 07:37:06 skrll Exp $ */
+/* $NetBSD: if_plip.c,v 1.36 2020/02/04 20:46:51 jdolecek Exp $ */
/*-
* Copyright (c) 1997 Poul-Henning Kamp
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_plip.c,v 1.35 2020/02/04 07:37:06 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_plip.c,v 1.36 2020/02/04 20:46:51 jdolecek Exp $");
/*
* Parallel port TCP/IP interfaces added. I looked at the driver from
@@ -636,19 +636,19 @@
}
if (top == NULL) {
- ifp->if_iqdrops++;
+ if_statinc(ifp, if_iqdrops);
goto err;
}
if (ifp->if_bpf) {
lptap(ifp, top, BPF_D_IN);
}
if (__predict_false(!pktq_enqueue(ip_pktq, top, 0))) {
- ifp->if_iqdrops++;
+ if_statinc(ifp, if_iqdrops);
m_freem(top);
goto err;
}
- ifp->if_ipackets++;
- ifp->if_ibytes += len;
+ if_statinc(ifp, if_ipackets);
+ if_statadd(ifp, if_ibytes, len);
sc->sc_iferrs = 0;
goto done;
@@ -724,7 +724,7 @@
if (dst->sa_family != AF_INET) {
LP_PRINTF("%s: af%d not supported\n", ifp->if_xname,
dst->sa_family);
- ifp->if_noproto++;
+ if_statinc(ifp, if_noproto);
err = EAFNOSUPPORT;
goto endoutput;
}
Home |
Main Index |
Thread Index |
Old Index