mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-05 12:56:08 +00:00
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:
parent
ee9ad95f0e
commit
2590e88477
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=113237
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user