200-disable-tso.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
  2. Subject: [PATCH] net: mv643xx_eth: Make TSO disabled by default
  3. Data corruption has been observed to be produced by TSO. For instance,
  4. accessing files on a NFS-server with TSO enabled results in different data
  5. transferred each time.
  6. This has been observed only on Kirkwood platforms, i.e. with the mv643xx_eth
  7. driver. Same tests on platforms using the mvneta ethernet driver have
  8. passed without errors.
  9. Make TSO disabled by default for now, until we can found a proper fix
  10. for the regression.
  11. Fixes: 3ae8f4e0b98 ('net: mv643xx_eth: Implement software TSO')
  12. Reported-by: Slawomir Gajzner <slawomir.gajzner <at> gmail.com>
  13. Reported-by: Julien D'Ascenzio <jdascenzio <at> yahoo.fr>
  14. Signed-off-by: Ezequiel Garcia <ezequiel.garcia <at> free-electrons.com>
  15. ---
  16. --- a/drivers/net/ethernet/marvell/mv643xx_eth.c
  17. +++ b/drivers/net/ethernet/marvell/mv643xx_eth.c
  18. @@ -3112,11 +3112,11 @@ static int mv643xx_eth_probe(struct plat
  19. dev->watchdog_timeo = 2 * HZ;
  20. dev->base_addr = 0;
  21. - dev->features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_TSO;
  22. + dev->features = NETIF_F_SG | NETIF_F_IP_CSUM;
  23. dev->vlan_features = dev->features;
  24. dev->features |= NETIF_F_RXCSUM;
  25. - dev->hw_features = dev->features;
  26. + dev->hw_features = dev->features | NETIF_F_TSO;
  27. dev->priv_flags |= IFF_UNICAST_FLT;
  28. dev->gso_max_segs = MV643XX_MAX_TSO_SEGS;