ipq40xx: essedma: Disable TCP segmentation offload for IPv6
authorSven Eckelmann <sven@narfation.org>
Tue, 9 Jun 2020 13:23:04 +0000 (15:23 +0200)
committerChristian Lamparter <chunkeey@gmail.com>
Sat, 13 Jun 2020 15:41:57 +0000 (17:41 +0200)
commitd6bbfc8b52f244f04aa15c362765d21d22516e68
tree0d3c131fa2dfe1ecc381ae105d057ec50d519515
parentb98bfd4e9b25b5a559abf1a50cc1ba952ee157da
ipq40xx: essedma: Disable TCP segmentation offload for IPv6

It was noticed that the the whole MAC can hang when transferring data from
one ar40xx port (WAN ports) to the CPU and from the CPU back to another
ar40xx port (LAN ports). The CPU was doing only NATing in that process.

Usually, the problem first starts with a simple data corruption:

  $ wget https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-10.4.0-amd64-netinst.iso -O /dev/null
  ...
  Connecting to saimei.ftp.acc.umu.se (saimei.ftp.acc.umu.se)|2001:6b0:19::138|:443... connected.
  ...
  Read  error at byte 48807936/352321536 (Decryption has failed.). Retrying.

But after a short while, the whole MAC will stop to react. No traffic can
be transported anymore from the CPU port from/to the AR40xx PHY/switch and
the MAC has to be resetted.

The whole problem can be avoided by disabling the TSO for IPv6 for this
ethernet MAC driver.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
Acked-by: John Crispin <john@phrozen.org>
(backported from commit 678569505623e50bbbbc344c7e820fb315b79ede,
with updated commit message)
Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
target/linux/ipq40xx/patches-4.14/713-essedma-Disable-TCP-segmentation-offload-for-IPv6.patch [new file with mode: 0644]