mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 04:50:30 +01:00
merge: branch 'bg/bridge-port-fix-reapply'
bridge: fix reapplying port VLANs
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2240
(cherry picked from commit bd41951f1d)
This commit is contained in:
commit
e4f321c307
2 changed files with 12 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -14051,6 +14051,13 @@ can_reapply_change(NMDevice *self,
|
|||
goto out_fail;
|
||||
}
|
||||
|
||||
if (nm_streq(setting_name, NM_SETTING_BRIDGE_PORT_SETTING_NAME)) {
|
||||
return nm_device_hash_check_invalid_keys(diffs,
|
||||
NM_SETTING_BRIDGE_PORT_SETTING_NAME,
|
||||
error,
|
||||
NM_SETTING_BRIDGE_PORT_VLANS);
|
||||
}
|
||||
|
||||
if (nm_streq(setting_name, NM_SETTING_SRIOV_SETTING_NAME)) {
|
||||
return nm_device_hash_check_invalid_keys(diffs,
|
||||
NM_SETTING_SRIOV_SETTING_NAME,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue