-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Re-enable network checksum TX offload on rockchip64 family #2623
Conversation
IIRC TX offloading still needs to be disabled in legacy kernels for rk3399. Tomorrow I may probably find some time to test it with legacy. |
Arghhh I forgot about the GMAC on legacy :/ Can the same patch that you did which set the PBL can be applied to legacy ? |
@piter75 In LK4.4, stmmac driver has pbl settings already which apply for both TX and RX, it's only later that the driver introduced txpbl and rxpbl. So it shouldn't be an issue to apply the same tweak to legacy.
https://elixir.bootlin.com/linux/v4.4.213/source/Documentation/networking/stmmac.txt#L152 |
Nice find! |
65a9044
to
9d1851e
Compare
Can you guys test the pbl settings for legacy kernel I just added in last commit on rk3399 boards other than Helios64. You should test with TX checksum offload enabled. @igorpecovnik I'm not sure why the check test failed. Is it because I did a force pushed to revert to previous commit ? |
@piter75 Can you please confirm if the PBL tweak is ok on legacy then we can merge this PR. Thanks. |
@g-provost I tested it with NanoPi M4V2 using rk3399-legacy and got ~940mbps stable both ways for 10 minutes with tx/rx offloading enabled but... Now it occurred to me that we also need to change it for rk3328 which exhibits the same issues without either Programmable Buffer Length set or tx offloading disabled. |
I merged latest changes from master, added I used branch: https://github.com/armbian/build/compare/rockchip64-tx-offload TX:
RX:
|
Ok done I just pushed back the branch rockchip64-tx-offload on Armbian into ours on Kobol. Next time I do a PR i will use a branch directly on Armbian. I let you merge if you think all is good then. BTW: I'm not sure why the PR CI test failed. |
Bugs in test :) |
) * Re-enable network checksum TX offload on rockchip64 family * Adjust gmac PBL setting for rk3399 legacy to fix network issues with MTU 1500 * Adjust gmac PBL setting for rk3328 in rockchip64-legacy to fix network issues with MTU 1500 Co-authored-by: Piotr Szczepanik <[email protected]>
) * Re-enable network checksum TX offload on rockchip64 family * Adjust gmac PBL setting for rk3399 legacy to fix network issues with MTU 1500 * Adjust gmac PBL setting for rk3328 in rockchip64-legacy to fix network issues with MTU 1500 Co-authored-by: Piotr Szczepanik <[email protected]>
Description
There is no more reason to have TX offload disable for the whole rockchip64 family anymore.
TX offload issue on internal GMAC was fixed here : Adjusted txpbl for rk3399 to fix network issues with MTU 1500 #1736. And it is upstream since LK5.7
usb-to-lan instability issue was fixed here : Fix 2.5G Ethernet on Helios64 Mainline kernel #2567, the issue wasn't related to TX offload but to USB host controller driver. With the DWC3 fix, RTL8156 works stable even with TX offload enable which provides performance increase.
We need additional test on others boards than Helios64.
Important: This is based on the fact that we use MTU1500, and not exceeding 3000
How Has This Been Tested?