mirror of
https://github.com/xcat2/xNBA.git
synced 2024-12-14 07:11:32 +00: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:
parent
7c76791730
commit
52de4935f9
@ -557,7 +557,7 @@ static void mentormac_init ( struct efab_nic *efab,
|
||||
udelay ( 10 );
|
||||
|
||||
/* 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 );
|
||||
udelay ( 10 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user