1
0
Fork 0
forked from mirror/openwrt
openwrt/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 kernel: Activate CONFIG_NET_SWITCHDEV in generic config 2025-03-15 13:54:59 +01:00
archs38 kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
armsr armsr: drop GC sections ARMv7 patch 2025-04-14 10:28:50 +02:00
at91 at91bootstrap: put at91bootstrap images into image staging directory 2025-04-04 14:39:00 +02:00
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 bcm47xx: old gpio wdt: use remove_new 2025-04-28 10:31:59 +02:00
bcm53xx kernel: Activate CONFIG_NET_SWITCHDEV in generic config 2025-03-15 13:54:59 +01:00
bcm4908 bcm63xx-cfe: install into image staging dir 2025-04-13 10:44:19 +02:00
bmips bmips: convert driver to .remove_new 2025-04-22 19:21:07 +02:00
d1 generic: globally enable CONFIG_PCPU_DEV_REFCNT 2025-03-08 11:33:56 +01:00
gemini Revert "gemini: Add module for VSC73xx switches" 2025-05-02 19:17:53 +02:00
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 generic: move QCOM SPI NAND driver to generic backports 2025-04-10 15:01:09 +02:00
ixp4xx kernel: Activate CONFIG_NET_SWITCHDEV in generic config 2025-03-15 13:54:59 +01:00
kirkwood kernel: Activate CONFIG_NET_SWITCHDEV in generic config 2025-03-15 13:54:59 +01:00
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 kernel: Add KERNEL_DCB (Data Center Bridging) 2025-03-09 17:05:26 +01:00
malta kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
mediatek kernel: bump 6.6 to 6.6.88 2025-05-03 19:57:53 +02:00
mpc85xx kernel: Activate CONFIG_NET_SWITCHDEV in generic config 2025-03-15 13:54:59 +01:00
mvebu kernel: bump 6.6 to 6.6.88 2025-05-03 19:57:53 +02:00
mxs mxs: adapt default package list for Duckbill devices 2025-02-05 22:00:09 +01:00
octeon octeon: force pcs reset to fix qca833x traffic 2025-04-02 10:04:52 +02:00
omap kernel: Activate CONFIG_NET_SWITCHDEV in generic config 2025-03-15 13:54:59 +01:00
pistachio kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
qoriq kernel: Activate CONFIG_NET_SWITCHDEV in generic config 2025-03-15 13:54:59 +01:00
qualcommax qualcommax: ipq50xx: gl-b3000: add 03_set_oem_name 2025-05-07 10:45:03 +02:00
qualcommbe qualcommbe: ipq95xx: pcs: fix USXGMII link-up failure 2025-04-12 10:38:52 +02:00
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 rockchip: fix the SD card detection on NanoPi R6C/R6S 2025-04-22 11:00:17 +02:00
sifiveu kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
siflower realtek: use remove_new 2025-05-02 01:34:24 +02:00
starfive kernel: bump 6.6 to 6.6.89 2025-05-03 19:57:53 +02:00
stm32 stm32: Add kmod-stm32-thermal 2025-04-19 18:41:29 +02:00
sunxi kernel: Activate CONFIG_NET_SWITCHDEV in generic config 2025-03-15 13:54:59 +01:00
tegra kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
uml uml: fix glibc-static check with GCC14 2024-06-22 22:06:06 +02:00
x86 x86: enable 6.12 testing kernel 2025-04-30 16:26:46 +02:00
zynq kernel: filter out compiler opts from config 2024-11-17 14:55:16 +01:00
Makefile linux: fix missing default packages in profiles.json 2024-11-17 19:29:06 +01:00