diff options
| author | Sven Eckelmann | 2025-11-23 14:42:20 +0000 |
|---|---|---|
| committer | Robert Marko | 2025-11-24 16:43:03 +0000 |
| commit | abb7bbb64ab4ef77045f4c142693623e5e21eb32 (patch) | |
| tree | 3f9fc21a39bb6200d2656a7fbb59f3215d4ec7bd | |
| parent | adad973a9c341a3e9a7d943daad021b58a433e20 (diff) | |
| download | openwrt-abb7bbb64ab4ef77045f4c142693623e5e21eb32.tar.gz | |
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 <sven@narfation.org>
Link: https://github.com/openwrt/openwrt/pull/20905
Signed-off-by: Robert Marko <robimarko@gmail.com>
| -rw-r--r-- | target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/debugfs.c b/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/debugfs.c index 5a33a5a12f..e95ffc5b0a 100644 --- a/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/debugfs.c +++ b/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/debugfs.c @@ -52,7 +52,7 @@ const char *rtl838x_drop_cntr[] = { const char *rtl839x_drop_cntr[] = { "ALE_TX_GOOD_PKTS", "ERROR_PKTS", "EGR_ACL_DROP", "EGR_METER_DROP", - "OAM", "CFM" "VLAN_IGR_FLTR", "VLAN_ERR", + "OAM", "CFM", "VLAN_IGR_FLTR", "VLAN_ERR", "INNER_OUTER_CFI_EQUAL_1", "VLAN_TAG_FORMAT", "SRC_PORT_SPENDING_TREE", "INBW", "RMA", "HW_ATTACK_PREVENTION", "PROTO_STORM", "MCAST_SA", "IGR_ACL_DROP", "IGR_METER_DROP", "DFLT_ACTION_FOR_MISS_ACL_AND_C2SC", "NEW_SA", |