[legacy] Allocate extra padding in receive buffers

Allow for legacy drivers that include VLAN tags or CRCs within their
received packets.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2025-06-24 13:40:50 +01:00
parent 97f40c5fcc
commit d0c02e0df8

View File

@@ -42,7 +42,8 @@ static void legacy_poll ( struct net_device *netdev ) {
struct nic *nic = netdev->priv;
struct io_buffer *iobuf;
iobuf = alloc_iob ( ETH_FRAME_LEN );
iobuf = alloc_iob ( ETH_FRAME_LEN + 4 /* possible VLAN */
+ 4 /* possible CRC */ );
if ( ! iobuf )
return;