[BPI-R4-PRO] Bad perf on 10 gigabit ports

Hello, As per [BPI-R4 Pro] General questions & Mainline - #50 by system64 I’ve been experiencing awful performance with the 10 gigabit port on the mxl switch.
Now i’m not sure if this is due to my PC having a 5 gigabit port or not but it could be, Because according to ethtool the 10 gigabit port is running at an unadvertised and unsupported speed of 5000.

I’m using a custom artix linux rootfs but with this 6.18 kernel.

From my testing performance on mxl_lan4 (the 10 gigabit lan port) can be increased by setting scatter gather off on eth2 ethtool -K eth2 sg off
This makes receiving more stable (I get about 4.7~ gbit) but transmission is capped at gigabit speed (941~ mbit)
That also has the downside of completely nuking the performance for everything else on the mxl switch and causes a lot of retries.

Note that i have my bpi r4 pro connected to a 3A power adapter so this could very likely be a power issue, Though i did stress test the mxl switch and was able to fully saturate it without any power issues (9.6~ gbit total throughput)
Got a 5A brick on the way, Will re-test again once it’s here.

There are some known issues with the aeonsemi driver i use in my repo. There were some recent changes in sdk driver which may fix these,but i had bot found time to look further into it. At least the debug parts should not be used in production.

Have you tested the mxl switch throughput against mac/cpu or internal (port 2 port)?