Title: [5935] trunk/drivers/net/bfin_mac.c: Fill EMAC_VLAN1 with 0x8100 to admit 1522 long bytes frames.
Revision
5935
Author
gyang
Date
2008-12-31 02:16:22 -0600 (Wed, 31 Dec 2008)

Log Message

Fill EMAC_VLAN1 with 0x8100 to admit 1522 long bytes frames. EMAC_VLAN2 seems need not use for now.

Modified Paths

Diff

Modified: trunk/drivers/net/bfin_mac.c (5934 => 5935)


--- trunk/drivers/net/bfin_mac.c	2008-12-31 08:08:04 UTC (rev 5934)
+++ trunk/drivers/net/bfin_mac.c	2008-12-31 08:16:22 UTC (rev 5935)
@@ -517,6 +517,14 @@
 
 	bfin_write_EMAC_MMC_CTL(RSTC | CROLL);
 
+#if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE)
+#define VLAN_ETHER_TYPE 0x8100
+	/* The legal length of the frame is increased to 1522 bytes */
+	bfin_write_EMAC_VLAN1(VLAN_ETHER_TYPE);
+	/* The legal length of the frame is increased to 1538 bytes */
+	/*bfin_write_EMAC_VLAN2(VLAN_ETHER_TYPE);*/
+#endif
+
 	/* Initialize the TX DMA channel registers */
 	bfin_write_DMA2_X_COUNT(0);
 	bfin_write_DMA2_X_MODIFY(4);
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to