GNOME Bugzilla – Bug 754996
[review] [platform] refresh linked-links when parent disappears and save REFRESH_LINK [th/platform-refresh-link-bgo754996]
Last modified: 2015-09-18 09:50:41 UTC
Please review
th/platform-refresh-link-bgo754996
commit 79a7570859e9851987e4a143ef27cc7f2115b5e8 Author: Thomas Haller <thaller@redhat.com> Date: Mon Sep 14 15:27:36 2015 platform: cancel delayed action REFRESH_LINK when receiving an update When we receive an update for a link, cancel the scheduled REFRESH_LINK delayed-action. At the point when we scheduled refrehing the link, we only cared about receiving a notification that was newer then the current state, i.e. to resync with the actual netlink state. We don't necessarily require to sent a new link-request. This extra work can be saved if we already receive a new update for the link. src/platform/nm-linux-platform.c | 36 ++++++++++++++++++++++++++++++------ 1 file changed, 30 insertions(+), 6 deletions(-) commit 5d05b82fca77fca14fd1cd79a12a64eee836b710 Author: Thomas Haller <thaller@redhat.com> Date: Mon Sep 14 15:05:00 2015 platform: refresh links when parent gets removed When moving a link to another netns, it gets removed from NMPlatform's view. Ensure that we reload all linked interfaces which now might have an invisible parent. src/platform/nm-linux-platform.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+)
LGTM.
merged upstream. master: http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=54afd0400bf940b87c973418fd3a7ef605f1c458 nm-1-0: http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=e8f5005d3dfe363a48569cafd262c59708e7ed21