merge: branch 'bg/bridge-port-fix-reapply'
bridge: fix reapplying port VLANs https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2240
This commit is contained in:
@@ -735,6 +735,11 @@ merge_bridge_vlan_default_pvid(NMPlatformBridgeVlan *vlans, guint *num_vlans, gu
|
|||||||
gboolean has_pvid = FALSE;
|
gboolean has_pvid = FALSE;
|
||||||
guint i;
|
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++) {
|
for (i = 0; i < *num_vlans; i++) {
|
||||||
if (vlans[i].pvid) {
|
if (vlans[i].pvid) {
|
||||||
has_pvid = TRUE;
|
has_pvid = TRUE;
|
||||||
|
@@ -14050,6 +14050,13 @@ can_reapply_change(NMDevice *self,
|
|||||||
goto out_fail;
|
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)) {
|
if (nm_streq(setting_name, NM_SETTING_SRIOV_SETTING_NAME)) {
|
||||||
return nm_device_hash_check_invalid_keys(diffs,
|
return nm_device_hash_check_invalid_keys(diffs,
|
||||||
NM_SETTING_SRIOV_SETTING_NAME,
|
NM_SETTING_SRIOV_SETTING_NAME,
|
||||||
|
Reference in New Issue
Block a user