From 5cf96c4db21907e6ddab9bed78ba0a082f9a7d8e Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Thu, 4 Aug 2022 18:20:07 +0200 Subject: [PATCH] bridge: fix reapply of vlan_filtering and default_pvid Fixes: 8e8fed433f22 ('bridge: add reapply support') https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1327 --- src/core/devices/nm-device-bridge.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/devices/nm-device-bridge.c b/src/core/devices/nm-device-bridge.c index f92aa46bcb..31cf361e8e 100644 --- a/src/core/devices/nm-device-bridge.c +++ b/src/core/devices/nm-device-bridge.c @@ -1209,6 +1209,10 @@ reapply_connection(NMDevice *device, NMConnection *con_old, NMConnection *con_ne s_bridge = nm_connection_get_setting_bridge(con_new); g_return_if_fail(s_bridge); + /* Make sure bridge_set_vlan_options() called by link_config() + * sets vlan_filtering and default_pvid anew. */ + self->vlan_configured = FALSE; + link_config(device, con_new); }