openwrt-6.x/target/linux
Linus Lüssing 1b7fd8464c realtek: rtl838x: fix broadcast flooding with many multicast entries
When many multicast entries are installed broadcast flooding might
potentially stop working for several ports. This is because the layer
2 broadcast flood port mask index has the wrong offset. It should be
9 bits, matching the 2^9 = 512 indexes on rtl838x, not 12.

The wrong offset leads to L2_BC_FLD_PMSK being set to 504, not 511
((511 << 12) >> 9) & 511 = 504). So, as by default an unset PMSK
is set to all ports, the issue would only become noticeable once
many multicast entries are installed, causing the 504th entry to be set
to something other than all ports.

Fixing this by setting the offset to 9 bits, to correctly point to our
511th reserved entry for all ports.

Tested-on: ZyXEL GS1900-24HP v1

Fixes: 28e972b2ea ("realtek: Configure initial L2 learning setup")
Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Link: https://github.com/openwrt/openwrt/pull/18733
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-05-07 20:51:15 +02:00
..
airoha kernel: bump 6.6 to 6.6.89 2025-05-03 19:57:53 +02:00
apm821xx
archs38
armsr
at91
ath79 kernel: bump 6.6 to 6.6.88 2025-05-03 19:57:53 +02:00
bcm27xx bcm27xx: bcm2712: support all devices 2025-05-06 18:07:40 +02:00
bcm47xx
bcm53xx
bcm4908
bmips
d1
gemini
generic kernel: bump 6.12 to 6.12.27 2025-05-07 14:31:01 +02:00
imx imx: coretexa53: add network config for single-port Gateworks Venice boards 2025-05-06 11:09:32 +02:00
ipq40xx kernel: bump 6.6 to 6.6.88 2025-05-03 19:57:53 +02:00
ipq806x
ixp4xx
kirkwood
lantiq kernel: bump 6.6 to 6.6.88 2025-05-03 19:57:53 +02:00
layerscape kernel: bump 6.6 to 6.6.88 2025-05-03 19:57:53 +02:00
loongarch64
malta
mediatek kernel: bump 6.6 to 6.6.88 2025-05-03 19:57:53 +02:00
mpc85xx
mvebu kernel: bump 6.6 to 6.6.88 2025-05-03 19:57:53 +02:00
mxs
octeon
omap
pistachio
qoriq
qualcommax qualcommax: ipq50xx: gl-b3000: add 03_set_oem_name 2025-05-07 10:45:03 +02:00
qualcommbe
ramips ramips: update drivers to be compatible with kernel 6.12 2025-05-07 00:40:05 +02:00
realtek realtek: rtl838x: fix broadcast flooding with many multicast entries 2025-05-07 20:51:15 +02:00
rockchip
sifiveu
siflower
starfive kernel: bump 6.6 to 6.6.89 2025-05-03 19:57:53 +02:00
stm32
sunxi
tegra
uml
x86
zynq
Makefile