summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authorsilby <silby@FreeBSD.org>2003-04-08 03:32:52 +0000
committersilby <silby@FreeBSD.org>2003-04-08 03:32:52 +0000
commitb9918280bc949c852ff2fb0b841635e7781e1bac (patch)
tree4d00ae1aca8068ab8c7842a6ffc4587f304f0b68 /sys/pci
parenta725b928c5cfd74f95504027295468428dbebc13 (diff)
downloadFreeBSD-src-b9918280bc949c852ff2fb0b841635e7781e1bac.zip
FreeBSD-src-b9918280bc949c852ff2fb0b841635e7781e1bac.tar.gz
Quick fix so that the watchdog timer is not set unless packets are
actually queued for transmission. Without this, a low memory situation would trigger false watchdog timeouts. MFC after: 1 week
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/if_rl.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/pci/if_rl.c b/sys/pci/if_rl.c
index 7ce1500..47c4de5 100644
--- a/sys/pci/if_rl.c
+++ b/sys/pci/if_rl.c
@@ -1575,6 +1575,11 @@ rl_start(ifp)
RL_CUR_TXMBUF(sc)->m_pkthdr.len);
RL_INC(sc->rl_cdata.cur_tx);
+
+ /*
+ * Set a timeout in case the chip goes out to lunch.
+ */
+ ifp->if_timer = 5;
}
/*
@@ -1585,10 +1590,6 @@ rl_start(ifp)
if (RL_CUR_TXMBUF(sc) != NULL)
ifp->if_flags |= IFF_OACTIVE;
- /*
- * Set a timeout in case the chip goes out to lunch.
- */
- ifp->if_timer = 5;
RL_UNLOCK(sc);
return;
OpenPOWER on IntegriCloud