[openwrt/openwrt] realtek: rtl931x: fix IPv4 unknown-mc portmask debug output

LEDE Commits lede-commits at lists.infradead.org
Sun Feb 1 08:32:39 PST 2026


robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/71da3a9f48e73153320eb46281c8fbf07a535418

commit 71da3a9f48e73153320eb46281c8fbf07a535418
Author: Linus Lüssing <linus.luessing at c0d3.blue>
AuthorDate: Fri Jan 30 22:49:12 2026 +0100

    realtek: rtl931x: fix IPv4 unknown-mc portmask debug output
    
    For the IPv4 unknown multicast flood portmask the first byte should be
    for the higher port numbers and the following byte for the lower port
    numbers, just like for the L2 unknown multicast flood portmask or the
    IPv6 unknown multicast flood portmasks, too. Not the other way around.
    
    Fix the debug output here by adjusting the offsets accordingly.
    
    Fixes: 27029277f98d ("realtek: add switch driver support for the RTL93XX based switches")
    Signed-off-by: Linus Lüssing <linus.luessing at c0d3.blue>
    Link: https://github.com/openwrt/openwrt/pull/21786
    Signed-off-by: Robert Marko <robimarko at gmail.com>
---
 target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl931x.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl931x.c b/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl931x.c
index 1a3b9858d5..0ea628defc 100644
--- a/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl931x.c
+++ b/target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/rtl931x.c
@@ -147,8 +147,8 @@ static void rtl931x_vlan_profile_dump(int index)
 	profile[0] = sw_r32(RTL931X_VLAN_PROFILE_SET(index));
 	profile[1] = (sw_r32(RTL931X_VLAN_PROFILE_SET(index) + 4) & 0x1FFFFFFFULL) << 32 |
 		     (sw_r32(RTL931X_VLAN_PROFILE_SET(index) + 8) & 0xFFFFFFFF);
-	profile[2] = (sw_r32(RTL931X_VLAN_PROFILE_SET(index) + 16) & 0x1FFFFFFFULL) << 32 |
-		     (sw_r32(RTL931X_VLAN_PROFILE_SET(index) + 12) & 0xFFFFFFFF);
+	profile[2] = (sw_r32(RTL931X_VLAN_PROFILE_SET(index) + 12) & 0x1FFFFFFFULL) << 32 |
+		     (sw_r32(RTL931X_VLAN_PROFILE_SET(index) + 16) & 0xFFFFFFFF);
 	profile[3] = (sw_r32(RTL931X_VLAN_PROFILE_SET(index) + 20) & 0x1FFFFFFFULL) << 32 |
 		     (sw_r32(RTL931X_VLAN_PROFILE_SET(index) + 24) & 0xFFFFFFFF);
 




More information about the lede-commits mailing list