diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-04-30 02:28:50 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-04-30 02:28:50 +0000 |
commit | a98adcf0fac52389e6a5e24a622ff56d2de11f19 (patch) | |
tree | 72966dd4443799227df8cf2aed2c1f2bd46971f1 | |
parent | 00ba077b4a64628df48375b668aaadeeab22c38f (diff) |
Update if_oerrors if we encounter watchdog error.
From FreeBSD
-rw-r--r-- | sys/dev/pci/if_sk.c | 4 |
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); } |