Skip to content

Commit

Permalink
[eepro100] Do not discard short packets
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mcb30 committed Mar 12, 2011
1 parent 9a5b4ae commit c315ae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/net/eepro100.c
Expand Up @@ -808,7 +808,7 @@ static void ifec_rx_process ( struct net_device *netdev )
cur_rx );
DBGIO_HD ( (void*)rfd->packet, 0x30 );

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

0 comments on commit c315ae0

Please sign in to comment.