diff --git a/src/devices/nm-device-ethernet.c b/src/devices/nm-device-ethernet.c index d458fffa2..da366c93f 100644 --- a/src/devices/nm-device-ethernet.c +++ b/src/devices/nm-device-ethernet.c @@ -1679,10 +1679,10 @@ carrier_changed (NMDevice *device, gboolean carrier) } static void -link_changed (NMDevice *device, NMPlatformLink *info) +link_changed (NMDevice *device, const NMPlatformLink *pllink) { - NM_DEVICE_CLASS (nm_device_ethernet_parent_class)->link_changed (device, info); - if (info->initialized) + NM_DEVICE_CLASS (nm_device_ethernet_parent_class)->link_changed (device, pllink); + if (pllink->initialized) _update_s390_subchannels ((NMDeviceEthernet *) device); } diff --git a/src/devices/nm-device-ip-tunnel.c b/src/devices/nm-device-ip-tunnel.c index f51c9f35a..332e53e05 100644 --- a/src/devices/nm-device-ip-tunnel.c +++ b/src/devices/nm-device-ip-tunnel.c @@ -331,9 +331,10 @@ update_properties (NMDevice *device) } static void -link_changed (NMDevice *device, NMPlatformLink *info) +link_changed (NMDevice *device, + const NMPlatformLink *pllink) { - NM_DEVICE_CLASS (nm_device_ip_tunnel_parent_class)->link_changed (device, info); + NM_DEVICE_CLASS (nm_device_ip_tunnel_parent_class)->link_changed (device, pllink); update_properties (device); } diff --git a/src/devices/nm-device-macvlan.c b/src/devices/nm-device-macvlan.c index 7b0e84436..917c8dcbf 100644 --- a/src/devices/nm-device-macvlan.c +++ b/src/devices/nm-device-macvlan.c @@ -212,9 +212,10 @@ update_properties (NMDevice *device) } static void -link_changed (NMDevice *device, NMPlatformLink *info) +link_changed (NMDevice *device, + const NMPlatformLink *pllink) { - NM_DEVICE_CLASS (nm_device_macvlan_parent_class)->link_changed (device, info); + NM_DEVICE_CLASS (nm_device_macvlan_parent_class)->link_changed (device, pllink); update_properties (device); } diff --git a/src/devices/nm-device-tun.c b/src/devices/nm-device-tun.c index ea70f1a53..55de1500a 100644 --- a/src/devices/nm-device-tun.c +++ b/src/devices/nm-device-tun.c @@ -122,10 +122,10 @@ get_generic_capabilities (NMDevice *dev) } static void -link_changed (NMDevice *device, NMPlatformLink *info) +link_changed (NMDevice *device, + const NMPlatformLink *pllink) { - NM_DEVICE_CLASS (nm_device_tun_parent_class)->link_changed (device, info); - + NM_DEVICE_CLASS (nm_device_tun_parent_class)->link_changed (device, pllink); reload_tun_properties (NM_DEVICE_TUN (device)); } diff --git a/src/devices/nm-device-vxlan.c b/src/devices/nm-device-vxlan.c index cd95a876b..e5ba1ef10 100644 --- a/src/devices/nm-device-vxlan.c +++ b/src/devices/nm-device-vxlan.c @@ -152,19 +152,18 @@ get_generic_capabilities (NMDevice *dev) } static void -link_changed (NMDevice *device, NMPlatformLink *info) +link_changed (NMDevice *device, + const NMPlatformLink *pllink) { - NM_DEVICE_CLASS (nm_device_vxlan_parent_class)->link_changed (device, info); + NM_DEVICE_CLASS (nm_device_vxlan_parent_class)->link_changed (device, pllink); update_properties (device); } static void realize_start_notify (NMDevice *device, const NMPlatformLink *plink) { - g_assert (plink->type == NM_LINK_TYPE_VXLAN); - + g_return_if_fail (plink->type == NM_LINK_TYPE_VXLAN); NM_DEVICE_CLASS (nm_device_vxlan_parent_class)->realize_start_notify (device, plink); - update_properties (device); } diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index c98013346..8d1fd2331 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -2119,12 +2119,12 @@ link_changed_cb (NMPlatform *platform, } static void -link_changed (NMDevice *self, NMPlatformLink *info) +link_changed (NMDevice *self, const NMPlatformLink *pllink) { /* Update carrier from link event if applicable. */ if ( nm_device_has_capability (self, NM_DEVICE_CAP_CARRIER_DETECT) && !nm_device_has_capability (self, NM_DEVICE_CAP_NONSTANDARD_CARRIER)) - nm_device_set_carrier (self, info->connected); + nm_device_set_carrier (self, pllink->connected); } static gboolean diff --git a/src/devices/nm-device.h b/src/devices/nm-device.h index ab6852e40..b843c6712 100644 --- a/src/devices/nm-device.h +++ b/src/devices/nm-device.h @@ -153,7 +153,8 @@ typedef struct { NMDeviceState old_state, NMDeviceStateReason reason); - void (* link_changed) (NMDevice *self, NMPlatformLink *info); + void (* link_changed) (NMDevice *self, + const NMPlatformLink *pllink); /** * create_and_realize():