[efi] Poll for TX completions only when there is an outstanding TX buffer
authorMichael Brown <mcb30@ipxe.org>
Tue, 14 Apr 2015 16:02:00 +0000 (17:02 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 14 Apr 2015 16:02:00 +0000 (17:02 +0100)
commitc6c7e78c42fff7b057ce32467ac6aa84bef94026
treeca4ccbd8332a075c41b70dfeee8b61e0cf97b089
parent729c16ad5b5502913d15a1fb17747bc8b586bed2
[efi] Poll for TX completions only when there is an outstanding TX buffer

At least one NII implementation (in a Microsoft Surface tablet) seems
to fail to report the absence (sic) of TX completions properly.  Work
around this by checking for TX completions only when we expect to see
one.

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