Skip to content

[NM 1.42] bridge: skip VLAN filtering resetting in reapply if no vlan change changed

Gris Ge requested to merge cathay4t/NetworkManager:nm-1-42-fix_pvid into nm-1-42

When doing reapply on linux bridge interface, NetworkManager will reset the VLAN filtering and default PVID which cause PVID been readded to all bridge ports regardless they are managed by NetworkManager.

This is because Linux kernel will re-add PVID to bridge port upon the changes of bridge default-pvid value.

To fix the issue, this patch introduce netlink parsing code for vlan_filtering and default_pvid of NMPlatformLnkBridge, and use that to compare desired VLAN filtering settings, skip the reset of VLAN filter if default_pvid and vlan_filtering are unchanged.

(cherry picked from commit 02c34d53)


Merge request reports