Title: [7680] trunk/drivers/net/bfin_mac.c: Task[#5621] Clear RXCKS if hardware generated checksum is not enabled.
Revision
7680
Author
sonicz
Date
2009-10-20 02:52:41 -0400 (Tue, 20 Oct 2009)

Log Message

Task[#5621] Clear RXCKS if hardware generated checksum is not enabled.

Modified Paths

Diff

Modified: trunk/drivers/net/bfin_mac.c (7679 => 7680)


--- trunk/drivers/net/bfin_mac.c	2009-10-20 04:58:07 UTC (rev 7679)
+++ trunk/drivers/net/bfin_mac.c	2009-10-20 06:52:41 UTC (rev 7680)
@@ -515,10 +515,11 @@
 	 * Configure checksum support and rcve frame word alignment
 	 */
 	sysctl = bfin_read_EMAC_SYSCTL();
+	sysctl |= RXDWA;
 #if defined(BFIN_MAC_CSUM_OFFLOAD)
-	sysctl |= RXDWA | RXCKS;
+	sysctl |= RXCKS;
 #else
-	sysctl |= RXDWA;
+	sysctl &= ~RXCKS;
 #endif
 	bfin_write_EMAC_SYSCTL(sysctl);
 
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to