http://git.etherboot.org
/
people
/
andreif
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c76791
)
Add 4 bytes to maximum frame length to allow for the frame checksum.
author
Michael Brown
<mcb30@etherboot.org>
Fri, 16 Jun 2006 14:30:41 +0000
(14:30 +0000)
committer
Michael Brown
<mcb30@etherboot.org>
Fri, 16 Jun 2006 14:30:41 +0000
(14:30 +0000)
(This actually matters once you try using TCP, because you *will*
receive full-sized frames.)
src/drivers/net/etherfabric.c
patch
|
blob
|
history
diff --git
a/src/drivers/net/etherfabric.c
b/src/drivers/net/etherfabric.c
index
d62b3be
..
68d2a2a
100644
(file)
--- 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 );