diff options
| author | Michael Brown | 2016-05-11 23:02:26 +0200 |
|---|---|---|
| committer | Michael Brown | 2016-05-12 00:02:10 +0200 |
| commit | 6164741f81fbb80d25ba3877251f4b31de3ed6a0 (patch) | |
| tree | ffa86f6ffa6c484d695a0557ef786bc98811c5c9 /src/include | |
| parent | [arm] Add optimised TCP/IP checksumming for 64-bit ARM (diff) | |
| download | ipxe-6164741f81fbb80d25ba3877251f4b31de3ed6a0.tar.gz ipxe-6164741f81fbb80d25ba3877251f4b31de3ed6a0.tar.xz ipxe-6164741f81fbb80d25ba3877251f4b31de3ed6a0.zip | |
[efi] Guard against GetStatus() failing to return a NULL TX buffer
The UEFI specification requires the EFI_SIMPLE_NETWORK_PROTOCOL
GetStatus() method to set TxBuf to NULL if there are no transmit
buffers to recycle.
Some implementations (observed with Lan9118Dxe in EDK2) fill in TxBuf
only when there is a transmit buffer to recycle, which leads to large
numbers of "spurious TX completion" errors.
Work around this problem by initialising TxBuf to NULL before calling
the GetStatus() method.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
0 files changed, 0 insertions, 0 deletions
