diff options
author | silby <silby@FreeBSD.org> | 2003-04-08 03:32:52 +0000 |
---|---|---|
committer | silby <silby@FreeBSD.org> | 2003-04-08 03:32:52 +0000 |
commit | b9918280bc949c852ff2fb0b841635e7781e1bac (patch) | |
tree | 4d00ae1aca8068ab8c7842a6ffc4587f304f0b68 /sys/pci/if_rl.c | |
parent | a725b928c5cfd74f95504027295468428dbebc13 (diff) | |
download | FreeBSD-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/if_rl.c')
-rw-r--r-- | sys/pci/if_rl.c | 9 |
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; |