david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[rtl8139] Strip CRC from received packets

The rtl8139 driver includes the Ethernet CRC within the received
packet.  All current protocols ignore trailing garbage, but FCoE
requires the frame length to be correct (since the FCoE footer
position is calculated from the end of the packet), so fix the driver
to strip out the CRC.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2010-09-03 16:16:18 +01:00
parent 28934eef81
commit a3021ad0e4
1 changed files with 1 additions and 0 deletions

View File

@ -458,6 +458,7 @@ static void rtl_poll ( struct net_device *netdev ) {
rx_len - wrapped_len );
memcpy ( iob_put ( rx_iob, wrapped_len ),
rtl->rx.ring, wrapped_len );
iob_unput ( rx_iob, 4 ); /* Strip CRC */
netdev_rx ( netdev, rx_iob );
} else {