summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2021-04-14 10:40:42 +0200
committerThomas Haller <thaller@redhat.com>2021-04-16 15:18:26 +0200
commitb0d45c88c31c09914ed84f629d176d9f7dd0ef48 (patch)
tree8b31a603e7341748135ff67381a5170b679e91d4
parente4537e9021ff4733ad046aaf170f73d8eff7d998 (diff)
downloadNetworkManager-b0d45c88c31c09914ed84f629d176d9f7dd0ef48.tar.gz
device: don't restart LLDP listener in nm_device_update_dynamic_ip_setup()
It's not clear why we would need to restart the instance. It is supposed to work, and recover automatically. The only thing that restarting should be necessary, is to change the ifindex. But this is not the right place for handling changes of ifindex.
-rw-r--r--src/core/devices/nm-device.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/core/devices/nm-device.c b/src/core/devices/nm-device.c
index b8a53bff0a..7ca03936fb 100644
--- a/src/core/devices/nm-device.c
+++ b/src/core/devices/nm-device.c
@@ -4903,7 +4903,6 @@ void
nm_device_update_dynamic_ip_setup(NMDevice *self)
{
NMDevicePrivate *priv;
- GError * error = NULL;
g_return_if_fail(NM_IS_DEVICE(self));
@@ -4936,19 +4935,6 @@ nm_device_update_dynamic_ip_setup(NMDevice *self)
if (priv->dnsmasq_manager) {
/* FIXME: todo */
}
-
- if (priv->lldp_listener && nm_lldp_listener_is_running(priv->lldp_listener)) {
- nm_lldp_listener_stop(priv->lldp_listener);
- if (!nm_lldp_listener_start(priv->lldp_listener, nm_device_get_ifindex(self), &error)) {
- _LOGD(LOGD_DEVICE,
- "LLDP listener %p could not be restarted: %s",
- priv->lldp_listener,
- error->message);
- g_clear_error(&error);
- set_interface_flags(self, NM_DEVICE_INTERFACE_FLAG_LLDP_CLIENT_ENABLED, FALSE);
- } else
- set_interface_flags(self, NM_DEVICE_INTERFACE_FLAG_LLDP_CLIENT_ENABLED, TRUE);
- }
}
/*****************************************************************************/