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 16:49:38 +0000 (18:49 +0200)
commitc37a9e506c6e53c80fe37a8eb7ac435eb966fa76
treea42c35cbee61f211562ac0a36c87e7b7bccf0949
parenta300e3c89027d247f2c31d88c3e6d720e61cbb05
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>
(cherry picked from commit c50ece58c41647880cc74c927d98b465cdfbdad8)
target/linux/generic/backport-5.4/790-v5.7-net-switchdev-do-not-propagate-bridge-updates-across.patch [new file with mode: 0644]