]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: rtl93xx: fix incorrect destination port selection 19802/head
authorIssam Hamdi <ih@simonwunderlich.de>
Fri, 28 Mar 2025 09:39:44 +0000 (10:39 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 23 Aug 2025 22:01:18 +0000 (00:01 +0200)
commit8c42e63a69f61ee9c295c05f00f6c1fba7b85a47
tree85134b3b1e1fc0c30a11a7f1787feb57d45c2211
parent6e04dccb7ad3191e9a48597a1b354bf548ead1d8
realtek: rtl93xx: fix incorrect destination port selection

When testing LLDP and STP, we observed that locally generated multicast
packets (e.g. LLDP, STP) were not restricted to the designated output
port(s). For example, when transmitting on `lan1`, the same packet was also
forwarded to other ports such as `lan2`.

Steps to reproduce:

1. Configure lldpd to use `lan1` in UCI and restart the service
2. Connect devices to `lan1` and `lan2`
3. Observe that the device on `lan2` still receives LLDP packets

The issue was caused by an incorrect `FWD_TYPE` setting in the TX CPU TAG,
which failed to enforce the selected egress port(s).

Fix this by updating the TX CPU TAG to set `FWD_TYPE` correctly, ensuring
that locally generated packets are transmitted only on the intended
port(s).

Signed-off-by: Issam Hamdi <ih@simonwunderlich.de>
Link: https://github.com/openwrt/openwrt/pull/19802
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c