mirror of
https://github.com/ipxe/ipxe
synced 2025-12-14 07:50:43 +03:00
Add 4 bytes to maximum frame length to allow for the frame checksum.
(This actually matters once you try using TCP, because you *will* receive full-sized frames.)
This commit is contained in:
@@ -557,7 +557,7 @@ static void mentormac_init ( struct efab_nic *efab,
|
|||||||
udelay ( 10 );
|
udelay ( 10 );
|
||||||
|
|
||||||
/* Max frame len register */
|
/* Max frame len register */
|
||||||
EFAB_POPULATE_DWORD_1 ( reg, GM_MAX_FLEN, ETH_FRAME_LEN );
|
EFAB_POPULATE_DWORD_1 ( reg, GM_MAX_FLEN, ETH_FRAME_LEN + 4 /* FCS */);
|
||||||
efab->op->mac_writel ( efab, ®, GM_MAX_FLEN_REG_MAC );
|
efab->op->mac_writel ( efab, ®, GM_MAX_FLEN_REG_MAC );
|
||||||
udelay ( 10 );
|
udelay ( 10 );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user