From cfbaa2d8ebba06fd7c7305b02dd724f35610f636 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 29 Jul 2020 17:07:43 +0200 Subject: [PATCH] device: fix emitting unnecessary PROP_IFINDEX notification in NMDevice Fixes: ea1f0fc0a635 ('device: let NMDevice track a NML3Cfg instance for each ifindex') --- src/devices/nm-device.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }