From 7e9091a5960f67a84787c03153324915220e4816 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Fri, 1 Aug 2025 19:15:13 +0200 Subject: New upstream version 1.54.0 --- src/core/devices/nm-device-bridge.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/core/devices/nm-device-bridge.c') diff --git a/src/core/devices/nm-device-bridge.c b/src/core/devices/nm-device-bridge.c index 7c34fde0..45cdd83f 100644 --- a/src/core/devices/nm-device-bridge.c +++ b/src/core/devices/nm-device-bridge.c @@ -735,6 +735,11 @@ merge_bridge_vlan_default_pvid(NMPlatformBridgeVlan *vlans, guint *num_vlans, gu gboolean has_pvid = FALSE; guint i; + if (default_pvid == 0) { + /* default_pvid=0 means that the default PVID is disabled. No need to merge it. */ + return vlans; + } + for (i = 0; i < *num_vlans; i++) { if (vlans[i].pvid) { has_pvid = TRUE; -- cgit 1.3.0-6-gf8a5