]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[intel] Avoid completely filling the TX descriptor ring
authorMichael Brown <mcb30@ipxe.org>
Tue, 22 Apr 2014 12:12:54 +0000 (13:12 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 22 Apr 2014 12:12:54 +0000 (13:12 +0100)
commit27884298a39553aa0b9b336493c988cf54d73f77
treecd34aee6b6cb35a796f3d7524c7097e3ceac77af
parent93acb5d8d0635b8f7726bd993cde4a90a6b1d723
[intel] Avoid completely filling the TX descriptor ring

It is unclear from the datasheets whether or not the TX ring can be
completely filled (i.e. whether writing the tail value as equal to the
current head value will cause the ring to be treated as completely
full or completely empty).  It is very plausible that this edge case
could differ in behaviour between real hardware and the many
implementations of an emulated Intel NIC found in various virtual
machines.  Err on the side of caution and always leave at least one
ring entry empty.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/intel.c
src/drivers/net/intel.h