mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 07:08:02 +02:00
device: only emit notify::ifindex when the value actually changes
This commit is contained in:
parent
78017f1bdc
commit
bd09decf16
1 changed files with 4 additions and 2 deletions
|
|
@ -2320,8 +2320,10 @@ update_device_from_platform_link (NMDevice *self, const NMPlatformLink *plink)
|
||||||
_notify (self, PROP_IFACE);
|
_notify (self, PROP_IFACE);
|
||||||
}
|
}
|
||||||
|
|
||||||
priv->ifindex = plink->ifindex;
|
if (priv->ifindex != plink->ifindex) {
|
||||||
_notify (self, PROP_IFINDEX);
|
priv->ifindex = plink->ifindex;
|
||||||
|
_notify (self, PROP_IFINDEX);
|
||||||
|
}
|
||||||
|
|
||||||
priv->up = NM_FLAGS_HAS (plink->n_ifi_flags, IFF_UP);
|
priv->up = NM_FLAGS_HAS (plink->n_ifi_flags, IFF_UP);
|
||||||
if (plink->driver && g_strcmp0 (plink->driver, priv->driver) != 0) {
|
if (plink->driver && g_strcmp0 (plink->driver, priv->driver) != 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue