summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_vr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pci/if_vr.c')
-rw-r--r--sys/pci/if_vr.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/pci/if_vr.c b/sys/pci/if_vr.c
index 5c15aae..1f4a07e 100644
--- a/sys/pci/if_vr.c
+++ b/sys/pci/if_vr.c
@@ -1071,8 +1071,8 @@ static void vr_txeof(sc)
ifp = &sc->arpcom.ac_if;
- /* Clear the timeout timer. */
- ifp->if_timer = 0;
+ /* Reset the timeout timer; if_txeoc will clear it. */
+ ifp->if_timer = 5;
/* Sanity check. */
if (sc->vr_cdata.vr_tx_head == NULL)
@@ -1129,11 +1129,10 @@ static void vr_txeoc(sc)
ifp = &sc->arpcom.ac_if;
- ifp->if_timer = 0;
-
if (sc->vr_cdata.vr_tx_head == NULL) {
ifp->if_flags &= ~IFF_OACTIVE;
sc->vr_cdata.vr_tx_tail = NULL;
+ ifp->if_timer = 0;
}
return;
OpenPOWER on IntegriCloud