openwrt/target/linux/realtek
Sven Eckelmann bd78eeb53f realtek: dsa: Select counter lock based on sleeping behavior
On many architectures, retrieving the HW counters from the switch is not
potentially sleeping. This would potentially allow these architectures to
retrieve the most recent values from the HW when .get_stats64 is called.
But because of the global mutex (which may sleep on lock), this would no
longer be possible.

Reintroduce the per port counters lock which protects from parallel
writes+reads of the non-link_stat counters. The locking is made abstract by
using helpers which identify the correct locking mechanism based on the
used read methods of the SoC.

Signed-off-by: Sven Eckelmann <se@simonwunderlich.de>
Link: https://github.com/openwrt/openwrt/pull/20631
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-11-16 00:10:56 +01:00
..
base-files realtek: rtl930x: Add support for Plasma Cloud MCX3 Media Converter 2025-11-07 21:12:58 +01:00
dts realtek: RTL838x: make u-boot-env writeable ZyXEL GS1900 2025-11-09 23:34:12 +01:00
files/firmware/rtl838x_phy
files-6.12 realtek: dsa: Select counter lock based on sleeping behavior 2025-11-16 00:10:56 +01:00
image realtek: rtl930x: Add support for Plasma Cloud MCX3 Media Converter 2025-11-07 21:12:58 +01:00
patches-6.12 kernel: bump 6.12 to 6.12.57 2025-11-06 22:06:54 +01:00
profiles target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
rtl838x realtek: rtl930x: Disable L3 offloading 2025-10-21 21:59:28 +02:00
rtl839x realtek: rtl930x: Disable L3 offloading 2025-10-21 21:59:28 +02:00
rtl930x realtek: add support for Zyxel XGS1010-12 A1 2025-11-03 11:07:20 +01:00
rtl930x_nand realtek: rtl930x: Disable L3 offloading 2025-10-21 21:59:28 +02:00
rtl931x realtek: rtl930x: Disable L3 offloading 2025-10-21 21:59:28 +02:00
rtl931x_nand realtek: rtl930x: Disable L3 offloading 2025-10-21 21:59:28 +02:00
Makefile realtek: add NAND targets for RTL93xx 2025-08-10 11:46:52 +02:00