NetworkManager/src/devices
Thomas Haller 120847c8a3 device: fix wrongly managing external-down device due to not setting EXTERNAL_DOWN
The unmanaged-flag NM_UNMANAGED_EXTERNAL_DOWN is initially set during
nm_device_finish_init(). But it was only set if the device was down at
that point.

If due to a race the platform device was not yet initialized, a later
initialization in device_link_changed() would clear NM_UNMANAGED_PLATFORM_INIT.
If the device is not external-down (because it was already up during
nm_device_finish_init()), the device will be managed right away with
reason NM_DEVICE_STATE_REASON_NOW_MANAGED.

Together with commit e29ab54335, this
is a race that causes a failure to assume the external-down device.

https://bugzilla.redhat.com/show_bug.cgi?id=1269199
2015-10-09 23:36:36 +02:00
..
adsl build: drop generating empty nm-*-enum-types for device plugins 2015-10-05 15:01:38 +02:00
bluetooth build: extract version macros from "nm-version.h" to new header file "nm-version-macros.h" 2015-09-30 23:10:29 +02:00
team build: drop generating empty nm-*-enum-types for device plugins 2015-10-05 15:01:38 +02:00
wifi build: drop generating empty nm-*-enum-types for device plugins 2015-10-05 15:01:38 +02:00
wwan build: extract version macros from "nm-version.h" to new header file "nm-version-macros.h" 2015-09-30 23:10:29 +02:00
nm-device-bond.c core: separate active and applied connection 2015-09-18 17:32:11 +02:00
nm-device-bond.h all: rename nm-glib-compat.h to nm-glib.h, use everywhere 2015-07-24 13:25:47 -04:00
nm-device-bridge.c core: separate active and applied connection 2015-09-18 17:32:11 +02:00
nm-device-bridge.h all: make use of new header file "nm-default.h" 2015-08-05 15:32:40 +02:00
nm-device-ethernet-utils.c all: drop includes to <glib/gi18n.h> for "nm-default.h" 2015-08-05 15:35:51 +02:00
nm-device-ethernet-utils.h all: make use of new header file "nm-default.h" 2015-08-05 15:32:40 +02:00
nm-device-ethernet.c device: export S390Subchannels property on Ethernet device 2015-09-29 09:30:01 +02:00
nm-device-ethernet.h device: export S390Subchannels property on Ethernet device 2015-09-29 09:30:01 +02:00
nm-device-factory.c core: fix interface type names 2015-09-10 13:43:47 -04:00
nm-device-factory.h core: fix interface type names 2015-09-10 13:43:47 -04:00
nm-device-generic.c device/trivial: rename nm_device_set_initial_unmanaged_flag() to nm_device_set_unmanaged_initial() 2015-09-18 13:14:44 +02:00
nm-device-generic.h core: split device creation and device setup (bgo #737458) 2015-07-31 14:06:09 -05:00
nm-device-gre.c devices, active-connection: port to gdbus 2015-08-10 09:41:26 -04:00
nm-device-gre.h all: rename nm-glib-compat.h to nm-glib.h, use everywhere 2015-07-24 13:25:47 -04:00
nm-device-infiniband.c core: separate active and applied connection 2015-09-18 17:32:11 +02:00
nm-device-infiniband.h all: rename nm-glib-compat.h to nm-glib.h, use everywhere 2015-07-24 13:25:47 -04:00
nm-device-logging.h logging: declare default logging macros in "nm-logging.h" 2015-08-20 11:15:13 +02:00
nm-device-macvlan.c platform: handle parent interfaces in other netns 2015-08-25 22:33:14 +02:00
nm-device-macvlan.h all: rename nm-glib-compat.h to nm-glib.h, use everywhere 2015-07-24 13:25:47 -04:00
nm-device-private.h all: make use of new header file "nm-default.h" 2015-08-05 15:32:40 +02:00
nm-device-tun.c devices, active-connection: port to gdbus 2015-08-10 09:41:26 -04:00
nm-device-tun.h all: rename nm-glib-compat.h to nm-glib.h, use everywhere 2015-07-24 13:25:47 -04:00
nm-device-veth.c devices, active-connection: port to gdbus 2015-08-10 09:41:26 -04:00
nm-device-veth.h all: rename nm-glib-compat.h to nm-glib.h, use everywhere 2015-07-24 13:25:47 -04:00
nm-device-vlan.c device/vlan: update VLAN MAC address when parent's one changes 2015-10-08 22:01:48 +02:00
nm-device-vlan.h core: split device creation and device setup (bgo #737458) 2015-07-31 14:06:09 -05:00
nm-device-vxlan.c devices, active-connection: port to gdbus 2015-08-10 09:41:26 -04:00
nm-device-vxlan.h all: rename nm-glib-compat.h to nm-glib.h, use everywhere 2015-07-24 13:25:47 -04:00
nm-device.c device: fix wrongly managing external-down device due to not setting EXTERNAL_DOWN 2015-10-09 23:36:36 +02:00
nm-device.h core: separate active and applied connection 2015-09-18 17:32:11 +02:00