kernel: backport switchdev fix for bridge in bridge configurations
authorFabian Bläse <fabian@blaese.de>
Sun, 29 Aug 2021 19:21:35 +0000 (21:21 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 13 Sep 2021 15:11:50 +0000 (17:11 +0200)
commitc50ece58c41647880cc74c927d98b465cdfbdad8
tree062c0f550a71089ba0ebe1376ae435907c1d96aa
parenta88b32bf6e870baae95eeb129483c3ee1447205e
kernel: backport switchdev fix for bridge in bridge configurations

This patch fixes the forwarding behavior of bridge in bridge
configurations with DSA.

Without it, the configuration of the upper bridge might overwrite
settings of the lower bridge. For example, a vlan-aware bridge
with DSA interfaces in it might be offloaded to the DSA hardware. If the
bridge interface itself gets slave of a different bridge without vlan
filtering, the vlan filtering setting of the lower bridge is overwritten
by the upper bridge, which results in an incorrect hardware
configuration.

This was backported from kernel 5.7.

Ref: https://lore.kernel.org/netdev/20191222192235.GK25745@shell.armlinux.org.uk/
Fixes: FS#3996
Signed-off-by: Fabian Bläse <fabian@blaese.de>
target/linux/generic/backport-5.4/790-v5.7-net-switchdev-do-not-propagate-bridge-updates-across.patch [new file with mode: 0644]