diff options
author | Damien Bergamini <damien@cvs.openbsd.org> | 2005-02-18 20:01:36 +0000 |
---|---|---|
committer | Damien Bergamini <damien@cvs.openbsd.org> | 2005-02-18 20:01:36 +0000 |
commit | 3a7130488e528ce31ce573573ae70e569727ef0b (patch) | |
tree | b6335281192c5cf061d9d38c93ef45511ad6ca1e /sys/dev/ic | |
parent | 9a5b3413ef3f046f638fffd15a763a3d5328a1c3 (diff) |
reset the interface on tx timeouts.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/ral.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ic/ral.c b/sys/dev/ic/ral.c index d7380b5ae55..e83bd084c11 100644 --- a/sys/dev/ic/ral.c +++ b/sys/dev/ic/ral.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ral.c,v 1.6 2005/02/17 18:28:05 reyk Exp $ */ +/* $OpenBSD: ral.c,v 1.7 2005/02/18 20:01:35 damien Exp $ */ /*- * Copyright (c) 2005 @@ -1772,6 +1772,7 @@ ral_watchdog(struct ifnet *ifp) if (sc->sc_tx_timer > 0) { if (--sc->sc_tx_timer == 0) { printf("%s: device timeout\n", sc->sc_dev.dv_xname); + ral_init(ifp); return; } ifp->if_timer = 1; |