An attempt to transmit a packet of 8192 bytes or larger will collide with the status bits in the TX descriptor. This gives the appearance of the network card's transmit data path having just suddenly stopped responding; iPXE is waiting for the card to report a TX completion but, because of the status bit collision, the card thinks that the descriptor has not yet been written. Fix by explicitly checking for oversized packets in rtl_transmit(). Discovered during Fibre Channel over Ethernet testing, and debugged by using gdb to examine the state of the emulated rtl8139 card in qemu. Signed-off-by: Michael Brown <mcb30@ipxe.org>tags/v1.20.1
|
|
||
86 |
|
86 |
|
87 |
|
87 |
|
88 |
|
88 |
|
|
89 |
|
|
89 |
|
90 |
|
90 |
|
91 |
|
91 |
|
92 |
|
|
|
||
383 |
|
384 |
|
384 |
|
385 |
|
385 |
|
386 |
|
|
387 |
|
|
|
388 |
|
|
|
389 |
|
|
|
390 |
|
|
|
391 |
|
|
|
392 |
|
|
|
393 |
|
|
386 |
|
394 |
|
387 |
|
395 |
|
388 |
|
396 |
|