Browse Source

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.)
tags/v0.9.3
Michael Brown 18 years ago
parent
commit
52de4935f9
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/drivers/net/etherfabric.c

+ 1
- 1
src/drivers/net/etherfabric.c View File

557
 	udelay ( 10 );
557
 	udelay ( 10 );
558
 
558
 
559
 	/* Max frame len register */
559
 	/* Max frame len register */
560
-	EFAB_POPULATE_DWORD_1 ( reg, GM_MAX_FLEN, ETH_FRAME_LEN );
560
+	EFAB_POPULATE_DWORD_1 ( reg, GM_MAX_FLEN, ETH_FRAME_LEN + 4 /* FCS */);
561
 	efab->op->mac_writel ( efab, &reg, GM_MAX_FLEN_REG_MAC );
561
 	efab->op->mac_writel ( efab, &reg, GM_MAX_FLEN_REG_MAC );
562
 	udelay ( 10 );
562
 	udelay ( 10 );
563
 
563
 

Loading…
Cancel
Save