diff options
author | Sonic Zhang <sonic.zhang@analog.com> | 2011-01-10 03:54:33 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-01-10 22:31:13 +0100 |
commit | 2d70a3d42de642e1d78355338b63cf064dc0f345 (patch) | |
tree | 74bf34d7545150b3716671e70a6b12e6faef3927 /drivers/net/bfin_mac.h | |
parent | netdev: bfin_mac: drop unused Mac data (diff) | |
download | linux-2d70a3d42de642e1d78355338b63cf064dc0f345.tar.xz linux-2d70a3d42de642e1d78355338b63cf064dc0f345.zip |
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/bfin_mac.h')
-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) |