diff options
| author | Michael Brown | 2006-06-16 16:30:41 +0200 |
|---|---|---|
| committer | Michael Brown | 2006-06-16 16:30:41 +0200 |
| commit | 52de4935f90b64da2c5d45917fa80e8f11509ad9 (patch) | |
| tree | 6899a31f56d27421d9a43d0a709bf0a75c01a241 /src | |
| parent | Improve debugging output for legacy wrapper (diff) | |
| download | ipxe-52de4935f90b64da2c5d45917fa80e8f11509ad9.tar.gz ipxe-52de4935f90b64da2c5d45917fa80e8f11509ad9.tar.xz ipxe-52de4935f90b64da2c5d45917fa80e8f11509ad9.zip | |
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.)
Diffstat (limited to 'src')
| -rw-r--r-- | src/drivers/net/etherfabric.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/net/etherfabric.c b/src/drivers/net/etherfabric.c index d62b3be43..68d2a2a3a 100644 --- a/src/drivers/net/etherfabric.c +++ b/src/drivers/net/etherfabric.c @@ -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 ); |
