mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-09 16:01:19 +01:00
fix a bug which could lock up a transmitter.
don't use the entire buffer space. if WRTX becomes equal to RDTX, the transmitter stops assuming the buffer is empty.
This commit is contained in:
parent
8b1ef8d464
commit
513bc54fe0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=40118
@ -2119,7 +2119,11 @@ again:
|
||||
goto dequeue_drop;
|
||||
}
|
||||
|
||||
if (launch.need > sc->txslot[chan].bfree) {
|
||||
/*
|
||||
* note: don't use the entire buffer space. if WRTX becomes equal
|
||||
* to RDTX, the transmitter stops assuming the buffer is empty! --kjc
|
||||
*/
|
||||
if (launch.need >= sc->txslot[chan].bfree) {
|
||||
EN_COUNT(sc->txoutspace);
|
||||
#ifdef EN_DEBUG
|
||||
printf("%s: tx%d: out of transmit space\n", sc->sc_dev.dv_xname, chan);
|
||||
|
Loading…
Reference in New Issue
Block a user