summaryrefslogtreecommitdiffstats
path: root/src/crypto
diff options
context:
space:
mode:
authorMichael Brown2013-05-26 19:26:48 +0200
committerMichael Brown2013-05-26 19:31:46 +0200
commit5d3d62d8d72bfd84122fb89e1ee5f9e4c65f46c7 (patch)
treeab9cdf819da0894d61cb022ea4d6175a4edb256d /src/crypto
parent[netdevice] Reset MAC address when asked to clear the "mac" setting (diff)
downloadipxe-5d3d62d8d72bfd84122fb89e1ee5f9e4c65f46c7.tar.gz
ipxe-5d3d62d8d72bfd84122fb89e1ee5f9e4c65f46c7.tar.xz
ipxe-5d3d62d8d72bfd84122fb89e1ee5f9e4c65f46c7.zip
[realtek] Fix reopening of legacy-mode 8139 NIC
realtek_destroy_ring() currently does nothing if the card is operating in legacy (pre-RTL8139C+) mode. In particular, the producer and consumer counters are incorrectly left holding their current values. Virtual hardware (e.g. the emulated RTL8139 in qemu and similar VMs) is tolerant of this behaviour, but real hardware will fail to transmit if the descriptors are not used in the correct order. Fix by resetting the producer and consumer counters in realtek_destroy_ring() even if the card is operating in legacy mode. Reported-by: Gelip <mrgelip@gmail.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/crypto')
0 files changed, 0 insertions, 0 deletions