🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
1 messages
1 total messages Started by Martin Mollat Thu, 26 Nov 2026 14:56
[BUG] r8169: RTL8126A (XID 64a) TX throughput collapses with TSO enabled (2.5 Gbps -> ~3 Mbps)
#23120
Author: Martin Mollat
Date: Thu, 26 Nov 2026 14:56
76 lines
14545 bytes
Hi,

On an RTL8126A driven by r8169, TCP transmit collapses as soon as TSO
is enabled: about 3 Mbit/s with hundreds of retransmissions, against
line rate (2.35 Gbit/s, 0 retransmissions) with TSO off. Receive is
not affected. The same machine and cable with Realtek's out-of-tree
r8126 driver (10.017.00, TSO on by default) reaches line rate in both
directions.

Hardware / software:

NIC: RTL8126 5GbE [10ec:8126] (rev 01), subsystem MSI [1462:7e70];
r8169 reports RTL8126A, XID 64a
Board: MSI PRO X870E-P WIFI (MS-7E70), BIOS 2.A33, onboard NIC
Link: 2.5Gbps/Full, flow control off (switch port is 2.5G)
PCIe: 8GT/s x1
Kernel: 7.3.4-300.fc45.x86_64 (Fedora 45)
Firmware: rtl8126a-3_0.0.5 08/30/24 (linux-firmware 20261019)
Limits: gso_max_size 64000, gso_max_segs 64, tso_max_size 64000, tso_max_segs 64
EEE disabled, PCIe ASPM disabled on the NIC link (setpci, both ends).

Reproduction: iperf3 between this host and another 2.5G Linux host on
the same switch, 10 s runs, IPv4 unless noted.

r8126 10.017.00, TSO on (default): send 2356 Mbit/s, 0 retr; recv 2353 Mbit/s
r8169, TSO on (default): send 2.3 Mbit/s, 593 retr; recv 2353 Mbit/s, 0 retr
r8169, TSO on, 4 parallel streams: send 21 Mbit/s, 3164 retr
r8169, TSO off (ethtool -K tso off): send 2357 Mbit/s, 0 retr

With TSO on, I also tried the following (6 s runs, all broken):

gso_max_size 32768 / 16384 / 8192 / 4096: 2.4 - 4.4 Mbit/s, 300 - 330 retr each
tx-tcp-segmentation off, tx-tcp6-segmentation on, IPv6 link-local: 2.8
Mbit/s, 361 retr
tx-tcp-mangleid-segmentation off: not changeable here; 3.5 Mbit/s

So even a TSO burst of only ~3 segments is mishandled, and TSO6 is
affected the same way. The receiver's TCPOFOQueue counter grows on
every TSO-on run, i.e. segments arrive out of order. Nothing is
logged: no NETDEV WATCHDOG, no tx_errors / tx_aborted / tx_underrun,
and the link stays up.

The same symptom (r8169 + RTL8126, ~67% retransmission, out-of-order
arrival, fixed by turning TSO off) was reported on 6.17 in
https://github.com/ublue-os/bazzite/issues/4664 (closed as stale,
never reported upstream as far as I can tell). I found no related
change in r8169_main.c up to 2026-11-06.

dmesg (r8169 lines; MAC removed):

r8169 0000:0e:00.0: enabling device (0000 -> 0003)
r8169 0000:0e:00.0 eth0: RTL8126A, <MAC>, XID 64a, IRQ 148
r8169 0000:0e:00.0 eth0: jumbo features [frames: 16362 bytes, tx
checksumming: ko]
r8169 0000:0e:00.0 enp14s0: renamed from eth0
Realtek Internal NBASE-T PHY r8169-0-e00:00: attached PHY driver
(mii_bus:phy_addr=r8169-0-e00:00, irq=MAC)
r8169 0000:0e:00.0 enp14s0: Link is Down
r8169 0000:0e:00.0 enp14s0: Link is Up - 2.5Gbps/Full - flow control off
r8169 0000:0e:00.0: invalid VPD tag 0x00 (size 0) at offset 0; assume
missing optional EEPROM

Workaround: ethtool -K <if> tso off. Until this is fixed, disabling
TSO by default for RTL8126A (as was done for some RTL8168 versions in
the past) would avoid a silent ~1000x upload slowdown for everyone on
this chip.

I can run test patches on this machine, and capture a tcpdump or a
register dump (ethtool -d) on request. I will also add a Red Hat
Bugzilla entry so other users can follow this.

Thanks,

Martin Mollat
Dallas, TX, USA
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads