]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[intel] Poll RX queue if hardware reports RX overflow
authorMichael Brown <mcb30@ipxe.org>
Thu, 25 Oct 2012 23:09:09 +0000 (16:09 -0700)
committerMichael Brown <mcb30@ipxe.org>
Sun, 28 Oct 2012 18:53:23 +0000 (18:53 +0000)
commit0c5e3df6d91961e05844678e70902f0537cb2a22
tree5654f5d8514267767948f2514464dbac9d0b9b15
parentc4ee23e7c6421016400eb76d28a3e2d12617c8ea
[intel] Poll RX queue if hardware reports RX overflow

The Intel NIC emulation in some versions of VMware seems to suffer
from a flaw whereby the Interrupt Cause Register (ICR) fails to assert
the usual "packet received" bit (ICR.RXT0) if a receive overflow
(ICR.RXO) has also occurred.

Work around this flaw by polling for completed descriptors whenever
either ICR.RXT0 or ICR.RXO is asserted.

Reported-by: Miroslav Halas <miroslav.halas@bankofamerica.com>
Debugged-by: Miroslav Halas <miroslav.halas@bankofamerica.com>
Tested-by: Miroslav Halas <miroslav.halas@bankofamerica.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/intel.c