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>tags/v1.20.1
|
|
||
549 |
|
549 |
|
550 |
|
550 |
|
551 |
|
551 |
|
552 |
|
|
|
|
552 |
|
|
|
553 |
|
|
|
554 |
|
|
|
555 |
|
|
|
556 |
|
|
553 |
|
557 |
|
554 |
|
558 |
|
555 |
|
559 |
|
|
|
||
560 |
|
564 |
|
561 |
|
565 |
|
562 |
|
566 |
|
563 |
|
|
|
564 |
|
|
|
565 |
|
567 |
|
566 |
|
568 |
|
567 |
|
569 |
|