diff options
| author | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-01-08 00:24:55 +0100 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-01-08 00:24:55 +0100 |
| commit | 17ef60cbb8be5d27144bf9a9f3bf6a201204a5be (patch) | |
| tree | 9ad12e4f2ed7cfb8e25ee2b07e259e34ffe665a1 | |
| parent | 3be526d4b93c750ff7751d50cf5fb5d34f9d8de5 (diff) | |
| parent | acb206859deafd32c5ef1901560dc13be2c0d280 (diff) | |
| download | plan9front-17ef60cbb8be5d27144bf9a9f3bf6a201204a5be.tar.xz | |
merge
| -rw-r--r-- | sys/src/9/pc/ether8169.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/src/9/pc/ether8169.c b/sys/src/9/pc/ether8169.c index 02f39c5f3..734608ab9 100644 --- a/sys/src/9/pc/ether8169.c +++ b/sys/src/9/pc/ether8169.c @@ -919,8 +919,10 @@ rtl8169receive(Ether* edev) int x; ctlr = edev->ctlr; - x = ctlr->rdh; - for(;;){ + if(ctlr->nrq < ctlr->nrd/2) + rtl8169replenish(ctlr); + + for(x = ctlr->rdh; x != ctlr->rdt;){ d = &ctlr->rd[x]; if((control = d->control) & Own) break; |
