mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 06:08:08 +00:00
0890fb2df4
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:
|
||
---|---|---|
.. | ||
001-5.13-dt-bindings-gpio-binding-for-realtek-otto-gpio.patch | ||
002-5.13-gpio-add-realtek-otto-gpio-support.patch | ||
003-5.12-spi-realtek-rtl838x-rtl839x-spi-controller.patch | ||
004-5.12-spi-realtek-rtl-add-support-for-realtek-rtl838x-rtl839x-spi-controllers.patch | ||
005-5.12-dt-bindings-interrupt-controller-add-realtek-rtl838x-rtl839x-support.patch | ||
006-5.12-irqchip-add-support-for-realtek-rtl838x-rtl839x-interrupt-controller.patch | ||
007-5.16-gpio-realtek-realtek-otto-fix-gpio-line-irq-offset.patch | ||
008-5.17-watchdog-add-realtek-otto-watchdog-timer.patch | ||
020-v5.17-net-mdio-add-helpers-to-extract-clause-45-regad-and-.patch | ||
300-mips-add-rtl838x-platform.patch | ||
301-gpio-add-rtl8231-driver.patch | ||
303-gpio-update-dependencies-for-gpio-realtek-otto.patch | ||
304-spi-update-dependency-for-spi-realtek-rtl.patch | ||
305-irqchip-update-dependency-for-irq-realtek-rtl.patch | ||
307-wdt-update-dependency-for-realtek-otto-wdt.patch | ||
308-otto-wdt-fix-missing-math-header.patch | ||
309-cevt-rtl9300-support.patch | ||
310-add-i2c-rtl9300-support.patch | ||
311-add-i2c-mux-rtl9300-support.patch | ||
312-rt9313-support.patch | ||
315-irqchip-irq-realtek-rtl-add-VPE-support.patch | ||
320-gpio-add-support-for-RTL930X-and-RTL931X.patch | ||
700-net-dsa-add-support-for-rtl838x-switch.patch | ||
701-net-dsa-add-rtl838x-support-for-tag-trailer.patch | ||
702-net-dsa-increase-dsa-max-ports-for-rtl838x.patch | ||
702-net-ethernet-add-support-for-rtl838x-ethernet.patch | ||
703-include-linux-add-phy-ops-for-rtl838x.patch | ||
704-drivers-net-phy-eee-support-for-rtl838x.patch | ||
704-include-linux-add-phy-hsgmii-mode.patch | ||
705-add-rtl-phy.patch | ||
705-include-linux-phy-increase-phy-address-number-for-rtl839x.patch | ||
708-brflood-api.patch | ||
709-lag-offloading.patch | ||
710-net-phy-sfp-re-probe-modules-on-DEV_UP-event.patch | ||
711-net-phy-add-an-MDIO-SMBus-library.patch | ||
712-net-phy-sfp-add-support-for-SMBus.patch | ||
713-v5.12-net-dsa-configure-better-brport-flags-when-ports-lea.patch | ||
800-net-mdio-support-hardware-assisted-indirect-access.patch |