device: don't allways set assumed reason when platform init is done
authorLubomir Rintel <lkundrak@v3.sk>
Thu, 18 Feb 2016 15:13:23 +0000 (16:13 +0100)
committerLubomir Rintel <lkundrak@v3.sk>
Fri, 19 Feb 2016 13:40:16 +0000 (14:40 +0100)
commit89d6fa6aa93cdc982992c137f0b694cd339c315c
tree22fe47da9f06edb0b2c5ab6a0e5837997bc950db
parent6d5e55870a00f44ab1421b5579ef8c309a7a615d
device: don't allways set assumed reason when platform init is done

When the device is transitioning from unmanaged to disconnected for "assumed"
reason, bring_up is not called. This is not a good thing in numerous
instances, e.g.:

1.) vlans that we've created need that to set IFF_UP and read carrier
otherwise they won't be available for connections.

2.) veths that are being managed need to start the deferred carrier check
so that the behavior matches real Ethernet.

3.) Hardware devices that were plugged in while NetworkManager is running
that need the IFF_UP for a carrier check, possibly enqueueing a deferred one.

Fixes: 5637d72af2d51b6f2b8dbe70553754f1828fdb66.
src/devices/nm-device.c