summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2006-04-30 02:28:50 +0000
committerBrad Smith <brad@cvs.openbsd.org>2006-04-30 02:28:50 +0000
commita98adcf0fac52389e6a5e24a622ff56d2de11f19 (patch)
tree72966dd4443799227df8cf2aed2c1f2bd46971f1
parent00ba077b4a64628df48375b668aaadeeab22c38f (diff)
Update if_oerrors if we encounter watchdog error.
From FreeBSD
-rw-r--r--sys/dev/pci/if_sk.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/if_sk.c b/sys/dev/pci/if_sk.c
index 43309b0777b..5b46aa1f762 100644
--- a/sys/dev/pci/if_sk.c
+++ b/sys/dev/pci/if_sk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_sk.c,v 1.101 2006/04/30 02:00:21 brad Exp $ */
+/* $OpenBSD: if_sk.c,v 1.102 2006/04/30 02:28:49 brad Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -1817,6 +1817,8 @@ sk_watchdog(struct ifnet *ifp)
printf("%s: watchdog timeout\n", sc_if->sk_dev.dv_xname);
+ ifp->if_oerrors++;
+
sk_init(sc_if);
}