diff options
author | dg <dg@FreeBSD.org> | 1996-01-30 07:25:44 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1996-01-30 07:25:44 +0000 |
commit | 4697e89bc73ee9f1d07233a71770f91708029aec (patch) | |
tree | c362939052e1329bf3af95f548278e736d8bb503 /sys | |
parent | 33641076c593580a9b2c61127ae3000cf0e846b6 (diff) | |
download | FreeBSD-src-4697e89bc73ee9f1d07233a71770f91708029aec.zip FreeBSD-src-4697e89bc73ee9f1d07233a71770f91708029aec.tar.gz |
Restore my change to the watchdog params that Paul spammed in rev 1.18.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/lnc/if_lnc.c | 11 | ||||
-rw-r--r-- | sys/i386/isa/if_lnc.c | 11 |
2 files changed, 10 insertions, 12 deletions
diff --git a/sys/dev/lnc/if_lnc.c b/sys/dev/lnc/if_lnc.c index aa5cd56..2f8198c 100644 --- a/sys/dev/lnc/if_lnc.c +++ b/sys/dev/lnc/if_lnc.c @@ -151,7 +151,7 @@ static int mbuf_to_buffer __P((struct mbuf *m, char *buffer)); static struct mbuf *chain_to_cluster __P((struct mbuf *m)); static void lnc_start __P((struct ifnet *ifp)); static int lnc_ioctl __P((struct ifnet *ifp, int command, caddr_t data)); -static void lnc_watchdog __P((int unit)); +static void lnc_watchdog __P((struct ifnet *ifp)); #ifdef DEBUG static void lnc_dump_state __P((int unit)); static void mbuf_dump_chain __P((struct mbuf *m)); @@ -1749,12 +1749,11 @@ lnc_ioctl(struct ifnet * ifp, int command, caddr_t data) } static void -lnc_watchdog(int unit) +lnc_watchdog(struct ifnet *ifp) { - struct lnc_softc *sc = &lnc_softc[unit]; - log(LOG_ERR, "lnc%d: Device timeout -- Resetting\n", unit); - ++sc->arpcom.ac_if.if_oerrors; - lnc_reset(unit); + log(LOG_ERR, "lnc%d: Device timeout -- Resetting\n", ifp->if_unit); + ifp->if_oerrors++; + lnc_reset(ifp->if_unit); } #ifdef DEBUG diff --git a/sys/i386/isa/if_lnc.c b/sys/i386/isa/if_lnc.c index aa5cd56..2f8198c 100644 --- a/sys/i386/isa/if_lnc.c +++ b/sys/i386/isa/if_lnc.c @@ -151,7 +151,7 @@ static int mbuf_to_buffer __P((struct mbuf *m, char *buffer)); static struct mbuf *chain_to_cluster __P((struct mbuf *m)); static void lnc_start __P((struct ifnet *ifp)); static int lnc_ioctl __P((struct ifnet *ifp, int command, caddr_t data)); -static void lnc_watchdog __P((int unit)); +static void lnc_watchdog __P((struct ifnet *ifp)); #ifdef DEBUG static void lnc_dump_state __P((int unit)); static void mbuf_dump_chain __P((struct mbuf *m)); @@ -1749,12 +1749,11 @@ lnc_ioctl(struct ifnet * ifp, int command, caddr_t data) } static void -lnc_watchdog(int unit) +lnc_watchdog(struct ifnet *ifp) { - struct lnc_softc *sc = &lnc_softc[unit]; - log(LOG_ERR, "lnc%d: Device timeout -- Resetting\n", unit); - ++sc->arpcom.ac_if.if_oerrors; - lnc_reset(unit); + log(LOG_ERR, "lnc%d: Device timeout -- Resetting\n", ifp->if_unit); + ifp->if_oerrors++; + lnc_reset(ifp->if_unit); } #ifdef DEBUG |