diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2011-01-10 05:54:33 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-01-11 00:31:13 +0300 |
commit | 2d70a3d42de642e1d78355338b63cf064dc0f345 (patch) | |
tree | 74bf34d7545150b3716671e70a6b12e6faef3927 /drivers/net | |
parent | 53ed29841dfffa71c68e5cd3e601da195235ff5b (diff) | |
download | linux-2d70a3d42de642e1d78355338b63cf064dc0f345.tar.xz |
netdev: bfin_mac: disable hardware checksum if writeback cache is enabled
With writeback caches, corrupted RX packets will be sent up the stack
without any error markings.
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/bfin_mac.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/bfin_mac.h b/drivers/net/bfin_mac.h index 4827f6b8238e..692187da99f0 100644 --- a/drivers/net/bfin_mac.h +++ b/drivers/net/bfin_mac.h @@ -17,7 +17,14 @@ #include <linux/etherdevice.h> #include <linux/bfin_mac.h> +/* + * Disable hardware checksum for bug #5600 if writeback cache is + * enabled. Otherwize, corrupted RX packet will be sent up stack + * without error mark. + */ +#ifndef CONFIG_BFIN_EXTMEM_WRITEBACK #define BFIN_MAC_CSUM_OFFLOAD +#endif #define TX_RECLAIM_JIFFIES (HZ / 5) |