]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: eth: use free floating rings for RTL838x
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Tue, 3 Feb 2026 07:15:33 +0000 (08:15 +0100)
committerRobert Marko <robimarko@gmail.com>
Thu, 12 Feb 2026 09:20:05 +0000 (10:20 +0100)
commitb2c56b52334ec9d81d57fd4449feda2d09083679
tree42aa1a68fb2d38ea16748d67d6e3e34603969bc2
parent30ac12f4b4682207c5b0501b3ffc50d56f58b690
realtek: eth: use free floating rings for RTL838x

The ring counters on RTL83xx allow a space of up to 15 entries.
But rings can be filled faster than data is received and might be
much larger defined (128 at the moment). Also NAPI processing
allows much more than 15 packets to be processed in one chunk.
Disable the counters and let the hardware automatically detect
the available buffers by the ownership flag. With this disable
a pseudo workaround that tried to mitigate the buffer filling
on RTL838x due to wrong setup.

Remark. This commit fixes several inconsistencies in the setup
code. RTL838x runs the setup twice with different values. RTL839x
does not run the setup at all.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/21856
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c