Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network error when TCP offload is enabled with RK3399 #1

Open
myroad94 opened this issue Jan 3, 2022 · 1 comment
Open

Network error when TCP offload is enabled with RK3399 #1

myroad94 opened this issue Jan 3, 2022 · 1 comment

Comments

@myroad94
Copy link

myroad94 commented Jan 3, 2022

Hi,

Not sure if this is the correct place to open this issue. With Rock PI 4C containing RK3399 chip, the network has lots of error if TCP offload is not disabled.

Workaround:
Disable it with (immediate effect + persistent in reboot)

cat <<EOF | sudo tee /etc/network/if-up.d/disable-offload
#!/bin/sh
# TCP offloading must be disabled because of RK3399 bug.
# See https://unix.stackexchange.com/questions/494290/nanopi-m4-rk3399-apache2-ssl-large-download-hangs/495378#495378
# See https://help.nextcloud.com/t/download-aborts-after-time-or-large-file/25044/5
/sbin/ethtool -K eth0 rx off tx off

EOF
sudo chmod 755 /etc/network/if-up.d/disable-offload
sudo /etc/network/if-up.d/disable-offload

Long-term solution:
Correct the network driver to allow TCP offload? I guess the workaround will affect the network performance and CPU negatively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant