openwrt/target/linux/realtek/patches-5.10
Bjørn Mork 0890fb2df4 realtek: net: dsa: configure better brport flags when ports leave the bridge
Ensures that the DSA driver sets exactly the same default flags as the
bridge when a port joins or leaves.  Without this we end up with a
confusing flag mismatch, where DSA and bridge ports use different sets
of flags.

This is critical as the "learning" mismatch will be harmful to the
network, causing all traffic to be flooded on all ports.

The original commit was buggy, trying to set the flags one-by-one in a
loop.  This was not supported by the API and the end result was that
all but the last flag were cleared.  This bug was implicitly fixed
upstream by commit e18f4c18ab5b ("net: switchdev: pass flags and mask
to both {PRE_,}BRIDGE_FLAGS attributes").

This is a minimum temporary stop measure fix for the critical lack of
"learning" only.  The major API change associated with a full v5.12+
backport is neither required nor wanted. A simpler fix, moving the
call to dsa_port_bridge_flags() out of the loop,  has therefore been
merged into this modified backport.

Fixes: afa3ab54c0 ("realtek: Backport bridge configuration for DSA")
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Acked-by: Daniel Golle <daniel@makrotopia.org>
Tested-by: Stijn Tintel <stijn@linux-ipv6.be>
[fix typos in commit message]
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2022-03-06 22:01:04 +02:00
..
001-5.13-dt-bindings-gpio-binding-for-realtek-otto-gpio.patch kernel: bump 5.10 to 5.10.69 2021-09-30 22:29:33 +01:00
002-5.13-gpio-add-realtek-otto-gpio-support.patch kernel: bump 5.10 to 5.10.102 2022-03-01 21:38:36 +01:00
003-5.12-spi-realtek-rtl838x-rtl839x-spi-controller.patch kernel: bump 5.10 to 5.10.69 2021-09-30 22:29:33 +01:00
004-5.12-spi-realtek-rtl-add-support-for-realtek-rtl838x-rtl839x-spi-controllers.patch realtek: backport spi-realtek-rtl driver from 5.12 to 5.10 2021-09-26 00:32:17 +02:00
005-5.12-dt-bindings-interrupt-controller-add-realtek-rtl838x-rtl839x-support.patch kernel: bump 5.10 to 5.10.69 2021-09-30 22:29:33 +01:00
006-5.12-irqchip-add-support-for-realtek-rtl838x-rtl839x-interrupt-controller.patch realtek: backport irq-realtek-rtl driver from 5.12 to 5.10 2021-09-26 00:32:17 +02:00
007-5.16-gpio-realtek-realtek-otto-fix-gpio-line-irq-offset.patch realtek: backport GPIO IRQ index fix 2021-11-01 00:56:51 +01:00
008-5.17-watchdog-add-realtek-otto-watchdog-timer.patch kernel: bump 5.10 to 5.10.85 2021-12-17 15:10:22 +01:00
020-v5.17-net-mdio-add-helpers-to-extract-clause-45-regad-and-.patch realtek: backport Clause-45 MDIO helper functions 2022-02-17 15:21:47 +00:00
300-mips-add-rtl838x-platform.patch realtek: Create 4 different Realtek Platforms 2022-02-17 15:21:47 +00:00
301-gpio-add-rtl8231-driver.patch kernel: bump 5.10 to 5.10.102 2022-03-01 21:38:36 +01:00
303-gpio-update-dependencies-for-gpio-realtek-otto.patch realtek: Create 4 different Realtek Platforms 2022-02-17 15:21:47 +00:00
304-spi-update-dependency-for-spi-realtek-rtl.patch realtek: Create 4 different Realtek Platforms 2022-02-17 15:21:47 +00:00
305-irqchip-update-dependency-for-irq-realtek-rtl.patch realtek: Create 4 different Realtek Platforms 2022-02-17 15:21:47 +00:00
307-wdt-update-dependency-for-realtek-otto-wdt.patch realtek: Create 4 different Realtek Platforms 2022-02-17 15:21:47 +00:00
308-otto-wdt-fix-missing-math-header.patch kernel: bump 5.10 to 5.10.82 2021-11-27 19:19:30 +01:00
309-cevt-rtl9300-support.patch realtek: Replace the RTL9300 generic timer with a CEVT timer 2022-02-17 15:21:47 +00:00
310-add-i2c-rtl9300-support.patch realtek: Add support for RTL9300/RTL9310 I2C controller 2022-02-17 15:21:46 +00:00
311-add-i2c-mux-rtl9300-support.patch realtek: Add support for RTL9300/RTL9310 I2C multiplexing 2022-02-17 15:21:46 +00:00
312-rt9313-support.patch realtek: Add RTL931X sub-target 2022-02-17 15:21:47 +00:00
315-irqchip-irq-realtek-rtl-add-VPE-support.patch realtek: Add VPE support for the IRQ driver 2022-02-17 15:21:47 +00:00
320-gpio-add-support-for-RTL930X-and-RTL931X.patch realtek: Add GPIO support for RTL930X and RTL931X 2022-02-17 15:21:46 +00:00
700-net-dsa-add-support-for-rtl838x-switch.patch kernel: bump 5.10 to 5.10.99 2022-02-11 23:17:40 +01:00
701-net-dsa-add-rtl838x-support-for-tag-trailer.patch realtek: refresh patches for Kernel 5.10 2021-09-26 00:32:17 +02:00
702-net-dsa-increase-dsa-max-ports-for-rtl838x.patch
702-net-ethernet-add-support-for-rtl838x-ethernet.patch realtek: Create 4 different Realtek Platforms 2022-02-17 15:21:47 +00:00
703-include-linux-add-phy-ops-for-rtl838x.patch kernel: bump 5.10 to 5.10.76 2021-10-30 21:17:20 +02:00
704-drivers-net-phy-eee-support-for-rtl838x.patch kernel: bump 5.10 to 5.10.83 2021-12-12 21:11:30 +01:00
704-include-linux-add-phy-hsgmii-mode.patch kernel: bump 5.10 to 5.10.76 2021-10-30 21:17:20 +02:00
705-add-rtl-phy.patch realtek: Create 4 different Realtek Platforms 2022-02-17 15:21:47 +00:00
705-include-linux-phy-increase-phy-address-number-for-rtl839x.patch kernel: bump 5.10 to 5.10.76 2021-10-30 21:17:20 +02:00
708-brflood-api.patch realtek: Backport bridge configuration for DSA 2022-02-17 15:21:47 +00:00
709-lag-offloading.patch realtek: Backport LAG functionality for DSA 2022-02-17 15:21:47 +00:00
710-net-phy-sfp-re-probe-modules-on-DEV_UP-event.patch realtek: Add support for SFP EEPROM-access over SMBus 2022-02-17 15:21:46 +00:00
711-net-phy-add-an-MDIO-SMBus-library.patch realtek: Add support for SFP EEPROM-access over SMBus 2022-02-17 15:21:46 +00:00
712-net-phy-sfp-add-support-for-SMBus.patch realtek: Add support for SFP EEPROM-access over SMBus 2022-02-17 15:21:46 +00:00
713-v5.12-net-dsa-configure-better-brport-flags-when-ports-lea.patch realtek: net: dsa: configure better brport flags when ports leave the bridge 2022-03-06 22:01:04 +02:00
800-net-mdio-support-hardware-assisted-indirect-access.patch realtek: switch to use generic MDIO accessor functions 2022-02-17 15:21:47 +00:00