diff --git a/src/core/devices/nm-device-macsec.c b/src/core/devices/nm-device-macsec.c index f6d76c0aa5..5b1f5fdc4a 100644 --- a/src/core/devices/nm-device-macsec.c +++ b/src/core/devices/nm-device-macsec.c @@ -187,8 +187,7 @@ update_properties(NMDevice *device) g_object_freeze_notify((GObject *) device); - if (priv->props.parent_ifindex != props->parent_ifindex) - nm_device_parent_set_ifindex(device, props->parent_ifindex); + nm_device_parent_set_ifindex(device, plink->parent); #define CHECK_PROPERTY_CHANGED(field, prop) \ G_STMT_START \ diff --git a/src/libnm-platform/nm-platform.c b/src/libnm-platform/nm-platform.c index 7d82083c4c..198e5f0afb 100644 --- a/src/libnm-platform/nm-platform.c +++ b/src/libnm-platform/nm-platform.c @@ -8249,7 +8249,6 @@ void nm_platform_lnk_macsec_hash_update(const NMPlatformLnkMacsec *obj, NMHashState *h) { nm_hash_update_vals(h, - obj->parent_ifindex, obj->sci, obj->cipher_suite, obj->window, @@ -8269,7 +8268,6 @@ int nm_platform_lnk_macsec_cmp(const NMPlatformLnkMacsec *a, const NMPlatformLnkMacsec *b) { NM_CMP_SELF(a, b); - NM_CMP_FIELD(a, b, parent_ifindex); NM_CMP_FIELD(a, b, sci); NM_CMP_FIELD(a, b, icv_length); NM_CMP_FIELD(a, b, cipher_suite); diff --git a/src/libnm-platform/nm-platform.h b/src/libnm-platform/nm-platform.h index 7792bbf5c3..30d0b5067c 100644 --- a/src/libnm-platform/nm-platform.h +++ b/src/libnm-platform/nm-platform.h @@ -980,7 +980,6 @@ typedef struct { } NMPlatformLnkIpIp; typedef struct { - int parent_ifindex; guint64 sci; /* host byte order */ guint64 cipher_suite; guint32 window;