mirror of
				https://github.com/xcat2/xNBA.git
				synced 2025-10-31 19:32:34 +00:00 
			
		
		
		
	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.)
This commit is contained in:
		| @@ -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 ); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user