Skip to content

Commit c315ae0

Browse files
committedMar 12, 2011
[eepro100] Do not discard short packets
In a virtual environment such as qemu, we can legitimately receive packets less than 64 bytes in length, such as ARP replies. These are currently discarded, causing most IPv4 communication to fail. Fix by ignoring the RFDShort bit when receiving packets. Reported-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
1 parent 9a5b4ae commit c315ae0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/drivers/net/eepro100.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ static void ifec_rx_process ( struct net_device *netdev )
808808
cur_rx );
809809
DBGIO_HD ( (void*)rfd->packet, 0x30 );
810810

811-
if ( ( status & RFD_STATUS ) != RFD_OK ) {
811+
if ( ( status & ( RFD_STATUS & ~RFDShort ) ) != RFD_OK ) {
812812
DBG ( "Corrupted packet received. "
813813
"Status = %#08hx\n", status );
814814
netdev_rx_err ( netdev, iob, -EINVAL );

0 commit comments

Comments
 (0)