ref: 2d9147a33ce2bca64704d8da4f35b2f1468797d3
parent: 55e0fd603151867eac865be660767dcc4289ed87
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Aug 31 18:39:46 EDT 2018
rtl8169: fix receive for nuc BOXNUC7CJYH
--- a/sys/src/9/pc/ether8169.c
+++ b/sys/src/9/pc/ether8169.c
@@ -725,7 +725,14 @@
csr32w(ctlr, Tcr, Ifg1|Ifg0|Mtxdmaunlimited);
ctlr->tcr = csr32r(ctlr, Tcr);
- ctlr->rcr = Rxfthnone|Mrxdmaunlimited|Ab|Am|Apm;
+ switch(ctlr->macv){
+ case Macv45:
+ ctlr->rcr = Rxfth256|Mrxdmaunlimited|Ab|Am|Apm;
+ break;
+ default:
+ ctlr->rcr = Rxfthnone|Mrxdmaunlimited|Ab|Am|Apm;
+ break;
+ }
ctlr->mchash = 0;
csr32w(ctlr, Mar0, 0);
csr32w(ctlr, Mar0+4, 0);