aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/kirkwood/patches-4.4/200-disable-tso.patch
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2016-03-14 17:06:20 +0000
committerLuka Perkov <luka@openwrt.org>2016-03-14 17:06:20 +0000
commit5c457db8e5cd45d2f54a78ab8e680057fbc90fbd (patch)
tree1d40b0f2c72ad612b0aa107487e228642dd7f814 /target/linux/kirkwood/patches-4.4/200-disable-tso.patch
parent9d0c1f484bbafa10468adf9d2b7d15931213023c (diff)
downloadupstream-5c457db8e5cd45d2f54a78ab8e680057fbc90fbd.tar.gz
upstream-5c457db8e5cd45d2f54a78ab8e680057fbc90fbd.tar.bz2
upstream-5c457db8e5cd45d2f54a78ab8e680057fbc90fbd.zip
kirkwood: add 4.4 support
Dropped patches because they applied upstream: - 120-iomega_ix2_200.patch - 150-pogoplug_e02.patch Tested on dockstar and goflexnet. Signed-off-by: Alexander Couzens <lynxis@fe80.eu> Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 49019
Diffstat (limited to 'target/linux/kirkwood/patches-4.4/200-disable-tso.patch')
-rw-r--r--target/linux/kirkwood/patches-4.4/200-disable-tso.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/target/linux/kirkwood/patches-4.4/200-disable-tso.patch b/target/linux/kirkwood/patches-4.4/200-disable-tso.patch
new file mode 100644
index 0000000000..af6ec20c57
--- /dev/null
+++ b/target/linux/kirkwood/patches-4.4/200-disable-tso.patch
@@ -0,0 +1,35 @@
+From: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
+Subject: [PATCH] net: mv643xx_eth: Make TSO disabled by default
+
+Data corruption has been observed to be produced by TSO. For instance,
+accessing files on a NFS-server with TSO enabled results in different data
+transferred each time.
+
+This has been observed only on Kirkwood platforms, i.e. with the mv643xx_eth
+driver. Same tests on platforms using the mvneta ethernet driver have
+passed without errors.
+
+Make TSO disabled by default for now, until we can found a proper fix
+for the regression.
+
+Fixes: 3ae8f4e0b98 ('net: mv643xx_eth: Implement software TSO')
+Reported-by: Slawomir Gajzner <slawomir.gajzner <at> gmail.com>
+Reported-by: Julien D'Ascenzio <jdascenzio <at> yahoo.fr>
+Signed-off-by: Ezequiel Garcia <ezequiel.garcia <at> free-electrons.com>
+---
+--- a/drivers/net/ethernet/marvell/mv643xx_eth.c
++++ b/drivers/net/ethernet/marvell/mv643xx_eth.c
+@@ -3178,11 +3178,11 @@ static int mv643xx_eth_probe(struct plat
+ dev->watchdog_timeo = 2 * HZ;
+ dev->base_addr = 0;
+
+- dev->features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_TSO;
++ dev->features = NETIF_F_SG | NETIF_F_IP_CSUM;
+ dev->vlan_features = dev->features;
+
+ dev->features |= NETIF_F_RXCSUM;
+- dev->hw_features = dev->features;
++ dev->hw_features = dev->features | NETIF_F_TSO;
+
+ dev->priv_flags |= IFF_UNICAST_FLT;
+ dev->gso_max_segs = MV643XX_MAX_TSO_SEGS;