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 );
|
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