mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +03:00
[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:
@@ -42,7 +42,8 @@ static void legacy_poll ( struct net_device *netdev ) {
|
|||||||
struct nic *nic = netdev->priv;
|
struct nic *nic = netdev->priv;
|
||||||
struct io_buffer *iobuf;
|
struct io_buffer *iobuf;
|
||||||
|
|
||||||
iobuf = alloc_iob ( ETH_FRAME_LEN );
|
iobuf = alloc_iob ( ETH_FRAME_LEN + 4 /* possible VLAN */
|
||||||
|
+ 4 /* possible CRC */ );
|
||||||
if ( ! iobuf )
|
if ( ! iobuf )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user