shithub: riscv

Download patch

ref: f3f89e03ed0b8e48769596241939adf929bd345e
parent: ce5f9d8210ff630d24bfc5f392b96964c891673e
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Dec 16 16:47:06 EST 2013

ether82598, ether82563: remove packblock() avoidance hack

--- a/sys/src/9/pc/ether82563.c
+++ b/sys/src/9/pc/ether82563.c
@@ -1014,7 +1014,6 @@
 			bp = ctlr->rb[rdh];
 			if((rd->status & Reop) && rd->errors == 0){
 				bp->wp += rd->length;
-				bp->lim = bp->wp;	/* lie like a dog.  avoid packblock. */
 				if(!(rd->status & Ixsm)){
 					ctlr->ixsm++;
 					if(rd->status & Ipcs){
--- a/sys/src/9/pc/ether82598.c
+++ b/sys/src/9/pc/ether82598.c
@@ -571,7 +571,6 @@
 	b = c->rb[rdh];
 	c->rb[rdh] = 0;
 	b->wp += r->length;
-	b->lim = b->wp;		/* lie like a dog */
 	if(!(r->status & Ixsm)){
 		if(r->status & Ipcs)
 			b->flag |= Bipck;
--