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
This commit is contained in:
silby 2003-04-08 03:32:52 +00:00
parent a725b928c5
commit b9918280bc

View File

@ -1575,6 +1575,11 @@ rl_start(ifp)
RL_CUR_TXMBUF(sc)->m_pkthdr.len); RL_CUR_TXMBUF(sc)->m_pkthdr.len);
RL_INC(sc->rl_cdata.cur_tx); 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) if (RL_CUR_TXMBUF(sc) != NULL)
ifp->if_flags |= IFF_OACTIVE; ifp->if_flags |= IFF_OACTIVE;
/*
* Set a timeout in case the chip goes out to lunch.
*/
ifp->if_timer = 5;
RL_UNLOCK(sc); RL_UNLOCK(sc);
return; return;