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,7 +557,7 @@ static void mentormac_init ( struct efab_nic *efab,
557 557
 	udelay ( 10 );
558 558
 
559 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 561
 	efab->op->mac_writel ( efab, &reg, GM_MAX_FLEN_REG_MAC );
562 562
 	udelay ( 10 );
563 563
 

Loading…
Cancel
Save