NetworkManager/src/platform
Lubomir Rintel dd4d8b24da linux-platform: re-read the link type if the name changed
For some device types, we use the DEVTYPE from sysfs to determine the
link type. However, the way we read from sysfs can race with device
renames and we could miss the chance to read DEVTYPE correctly.

This doesn't completely fix the sysfs race, but cures the boot-time race
with systemd renaming the device while we are initializing the link.

We ideally should use GUDev for all sysfs accesses, but that would need
some more work for this particular case as currently we need the link type
before we have an udev device instance.

https://bugzilla.gnome.org/show_bug.cgi?id=764803

Co-Authored-By: Beniamino Galvani <bgalvani@redhat.com>
2016-04-26 12:20:42 +02:00
..
tests platform/tests: improve nmtstp_wait_for_signal() to return number of signals 2016-04-11 11:26:37 +02:00
wifi platform: refactor wifi_utils_is_wifi() not to pass sysfs_path 2016-04-21 15:05:34 +02:00
Makefile.am platform: add minimal Makefile.am for convenience 2013-06-19 13:48:29 +02:00
nm-fake-platform.c platform: use nm_utils_new_infiniband_name() 2016-04-20 12:09:40 +02:00
nm-fake-platform.h all: fix up multiple-include-guard defines 2014-08-16 10:17:14 -04:00
nm-linux-platform.c linux-platform: re-read the link type if the name changed 2016-04-26 12:20:42 +02:00
nm-linux-platform.h platform: add nm_linux_platform_new() constructor 2016-04-11 11:26:37 +02:00
nm-platform-utils.c platform: expose nmp_utils_ip_config_source_to/from_rtprot() 2016-04-11 11:26:37 +02:00
nm-platform-utils.h platform: expose nmp_utils_ip_config_source_to/from_rtprot() 2016-04-11 11:26:37 +02:00
nm-platform.c platform: use nm_utils_new_infiniband_name() 2016-04-20 12:09:40 +02:00
nm-platform.h platform: add functionality to remove infiniband partitions 2016-04-20 10:49:00 +02:00
nmp-netns.c platform: add nmp_netns_bind_to_path() helper function 2016-03-15 12:56:59 +01:00
nmp-netns.h platform: add nmp_netns_bind_to_path() helper function 2016-03-15 12:56:59 +01:00
nmp-object.c platform: ensure cache consistency for routes by workaround missing kernel event 2016-04-11 11:32:48 +02:00
nmp-object.h platform: ensure cache consistency for routes by workaround missing kernel event 2016-04-11 11:32:48 +02:00