瀏覽代碼

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 年之前
父節點
當前提交
52de4935f9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/drivers/net/etherfabric.c

+ 1
- 1
src/drivers/net/etherfabric.c 查看文件

@@ -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…
取消
儲存