I have a problem with the 10G LAN port of the BPI-R4 Pro 8X (lan-phy variant, i.e. the AS21010 RJ45 in front of MxL86252C port 13) and I would like to know if someone else see the same.
Frames received on this port are lost depending of the frame length modulo 16 (FCS included). Lengths of 10 and 14 mod 16 are fine. With 2 mod 16 it loses a bit, with 4, 5 and 6 mod 16 TCP collapses. It happens only when frames arrive back to back (UDP with gaps between packets is clean). No counter moves on the MxL (RMON of port 13, no FCS errors, no discards) or in the AS21010 debug counters.
The other end is a BPI-R4 with a SFP-10G-T module (BCM84891), 10GBASE-T, MTU 9000. Both run frank-w 7.3-main with some patches, AS21010 firmware 1.9.2 and MxL firmware 1.0.85. It is easy to reproduce from the R4 Pro with iperf3 in reverse mode, so the R4 sends:
iperf3 -c <R4> -R -M 1460
iperf3 -c <R4> -R -M 1452
The first one gives 1518 byte frames and ~3 Gbps with 3 retransmits. The second gives 1510 byte frames and ~310 Mbps with ~1000 retransmits in 8 s. With jumbo frames it is the same: MSS 8892 does 3-4 Gbps with 200 retransmits, MSS 8900 does 9.8 Gbps with 0-5. The other direction (R4 Pro sends) is clean at every size.
What I tried: the same cable and module on the WAN RJ45 of the R4 Pro (same AS21010 but connected directly to the SoC MAC) gives no loss at all. Port 13 in 10GBASE-R instead of USXGMII, so no rate adaptation in the AS21010, gives the same loss. So I think the problem is between the AS21010 and the port 13 receiver of the MxL, which are both firmware I can’t change.
Update: it is the AS21010, not the MxL.
I switched port 13 to the SFP cage (lan-sfp overlay, i.e. #ov-pro-8x-lan-sfp instead of #ov-pro-8x-lan-phy in the boot config) and put in it a SFP-10G-T (BCM84891) from one of my R4s. Same cable and same tests as above, and now every frame length is clean. MSS 1340 (1398 byte frames, the worst case before) does 2.8 Gbps with 0 retransmits and MSS 8906 does 9.5 Gbps with 0, where before it was 1.5-1.9 Gbps with a few thousands retransmits.
So the MxL port 13 receiver is fine. The frames are lost in what the AS21010 sends to it. The AS21010 on the WAN port feeds the SoC MAC directly and loses nothing. My guess is that the MxL is more strict about the gap between frames than the SoC MAC, however I can’t confirm this from here.
The AS21010 runs firmware 1.9.2, which is also the version in the MediaTek feed. Does anyone know if Aeonsemi has a newer one? For now I keep the backhaul on the SFP cage, which means the 10G RJ45 LAN port is not used.