diff options
author | Thomas Haller <thaller@redhat.com> | 2020-07-29 17:07:43 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-07-29 17:21:10 +0200 |
commit | cfbaa2d8ebba06fd7c7305b02dd724f35610f636 (patch) | |
tree | 645b3bbbfffe8a9fc79b49b4bf2761501e287713 | |
parent | e7ac7290bd04f0607095214f2816d096ab737011 (diff) | |
download | NetworkManager-cfbaa2d8ebba06fd7c7305b02dd724f35610f636.tar.gz |
device: fix emitting unnecessary PROP_IFINDEX notification in NMDevice
Fixes: ea1f0fc0a635 ('device: let NMDevice track a NML3Cfg instance for each ifindex')
-rw-r--r-- | src/devices/nm-device.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 8950f01bde..869dfd35d3 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -1806,7 +1806,9 @@ _set_ifindex (NMDevice *self, int ifindex, gboolean is_ip_ifindex) NM_PRINT_FMT_QUOTED (l3cfg_old, " (old-l3cfg: ", nm_hash_obfuscated_ptr_str_a (l3cfg_old), ")", ""), NM_PRINT_FMT_QUOTED (*p_l3cfg, " (l3cfg: ", nm_hash_obfuscated_ptr_str_a (*p_l3cfg), ")", "")); - _notify (self, PROP_IFINDEX); + if (!is_ip_ifindex) + _notify (self, PROP_IFINDEX); + return TRUE; } |