From 3a7130488e528ce31ce573573ae70e569727ef0b Mon Sep 17 00:00:00 2001 From: Damien Bergamini Date: Fri, 18 Feb 2005 20:01:36 +0000 Subject: reset the interface on tx timeouts. --- sys/dev/ic/ral.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3