realtek: dsa: rtl839x: Fix incorrect drop counter names
authorSven Eckelmann <[email protected]>
Sun, 23 Nov 2025 14:42:20 +0000 (15:42 +0100)
committerRobert Marko <[email protected]>
Mon, 24 Nov 2025 16:43:03 +0000 (17:43 +0100)
commitabb7bbb64ab4ef77045f4c142693623e5e21eb32
tree3f9fc21a39bb6200d2656a7fbb59f3215d4ec7bd
parentadad973a9c341a3e9a7d943daad021b58a433e20
realtek: dsa: rtl839x: Fix incorrect drop counter names

The counter names "CFM" and "VLAN_IGR_FLTR" were not separated by a comma
in the `rtl839x_drop_cntr` array. As result, these two headers were merged
to a single header "CFMVLAN_IGR_FLTR" and everything after that was shifted
by one. The last name (for the 45th counter) was also not defined and was
therefore accessing data outside the array.

Fixes: 1cfd45ae0bad ("realtek: Add debugfs support for RTL9300")
Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20905
Signed-off-by: Robert Marko <[email protected]>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/debugfs.c