diff options
author | Paul Wassi <p.wassi@gmx.at> | 2018-03-12 20:50:48 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2018-03-20 21:45:27 +0100 |
commit | 1447784a8c33145dd22dbe5f0c7bab56ab9b7d6f (patch) | |
tree | c372de1ef07b49a48c51b36d4262b48483266078 /target/linux/kirkwood/patches-4.14/200-disable-tso.patch | |
parent | f21cd9640052a733e1759519e3d7ca0f9453653b (diff) | |
download | upstream-1447784a8c33145dd22dbe5f0c7bab56ab9b7d6f.tar.gz upstream-1447784a8c33145dd22dbe5f0c7bab56ab9b7d6f.tar.bz2 upstream-1447784a8c33145dd22dbe5f0c7bab56ab9b7d6f.zip |
kirkwood: add kernel 4.14 support
Add patches for 4.14, undoing upstream changes for Linksys devices
regarding DSA. Instead, the switchdev driver marvell,88e6171 is used.
Tested-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
Tested-by: Alberto Bursi <alberto.bursi@outlook.it>
Signed-off-by: Paul Wassi <p.wassi@gmx.at>
Diffstat (limited to 'target/linux/kirkwood/patches-4.14/200-disable-tso.patch')
-rw-r--r-- | target/linux/kirkwood/patches-4.14/200-disable-tso.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/target/linux/kirkwood/patches-4.14/200-disable-tso.patch b/target/linux/kirkwood/patches-4.14/200-disable-tso.patch new file mode 100644 index 0000000000..4b0cbeaba2 --- /dev/null +++ b/target/linux/kirkwood/patches-4.14/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 +@@ -3200,11 +3200,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; |