Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/newsmips/apbus Fix if_stats access.
details: https://anonhg.NetBSD.org/src/rev/b34e1d6e8e68
branches: trunk
changeset: 1007068:b34e1d6e8e68
user: martin <martin%NetBSD.org@localhost>
date: Wed Feb 05 13:08:19 2020 +0000
description:
Fix if_stats access.
diffstat:
sys/arch/newsmips/apbus/if_sn.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 4835d01a4e36 -r b34e1d6e8e68 sys/arch/newsmips/apbus/if_sn.c
--- a/sys/arch/newsmips/apbus/if_sn.c Wed Feb 05 11:05:10 2020 +0000
+++ b/sys/arch/newsmips/apbus/if_sn.c Wed Feb 05 13:08:19 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_sn.c,v 1.48 2020/02/04 07:41:01 skrll Exp $ */
+/* $NetBSD: if_sn.c,v 1.49 2020/02/05 13:08:19 martin Exp $ */
/*
* National Semiconductor DP8393X SONIC Driver
@@ -16,7 +16,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_sn.c,v 1.48 2020/02/04 07:41:01 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_sn.c,v 1.49 2020/02/05 13:08:19 martin Exp $");
#include "opt_inet.h"
@@ -966,9 +966,9 @@
(char *)sc->rbuf[orra & RBAMASK] +
(rxpkt_ptr & PGOFSET);
if (sonic_read(sc, pkt, len) == 0)
- sc->sc_if.if_ierrors++;
+ if_statinc(&sc->sc_if, if_ierrors);
} else
- sc->sc_if.if_ierrors++;
+ if_statinc(&sc->sc_if, if_ierrors);
/*
* give receive buffer area back to chip.
Home |
Main Index |
Thread Index |
Old Index