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:
Mike Silbersack 2003-04-08 03:32:52 +00:00
parent ee9ad95f0e
commit 2590e88477
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113237

View file

@ -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;