summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorSaeed Bishara <saeed@marvell.com>2010-06-27 00:26:43 +0000
committerDavid S. Miller <davem@davemloft.net>2010-06-30 13:01:11 -0700
commit9b2c2ff7a1c04e69842254dd4afe0f8ad4efa439 (patch)
tree705bd91dafd562a38d3833edb30297abf0516459 /include/linux
parent08e554b17bfdc2682599c8c2770b088a0187a405 (diff)
downloadlinux-9b2c2ff7a1c04e69842254dd4afe0f8ad4efa439.tar.gz
linux-9b2c2ff7a1c04e69842254dd4afe0f8ad4efa439.tar.bz2
linux-9b2c2ff7a1c04e69842254dd4afe0f8ad4efa439.zip
mv643xx_eth: use sw csum for big packets
Some controllers (KW, Dove) limits the TX IP/layer4 checksum offloading to a max size. Signed-off-by: Saeed Bishara <saeed@marvell.com> Acked-by: Lennert Buytenhek <buytenh@wantstofly.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mv643xx_eth.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/mv643xx_eth.h b/include/linux/mv643xx_eth.h
index cbbbe9bfecad..30b0c4e78f91 100644
--- a/include/linux/mv643xx_eth.h
+++ b/include/linux/mv643xx_eth.h
@@ -19,6 +19,11 @@ struct mv643xx_eth_shared_platform_data {
struct mbus_dram_target_info *dram;
struct platform_device *shared_smi;
unsigned int t_clk;
+ /*
+ * Max packet size for Tx IP/Layer 4 checksum, when set to 0, default
+ * limit of 9KiB will be used.
+ */
+ int tx_csum_limit;
};
#define MV643XX_ETH_PHY_ADDR_DEFAULT 0