From: Nikolay Aleksandrov <ra...@blackwall.org> Date: Wed, 27 Jan 2016 17:50:43 +0100
> From: Nikolay Aleksandrov <niko...@cumulusnetworks.com> > > Currently when a macvlan is being initialized and the lower device is > netif_carrier_ok(), the macvlan device doesn't run through > rfc2863_policy() and is left with UNKNOWN operstate. Fix it by adding an > unconditional linkwatch event for the new macvlan device. Similar fix is > already used by the 8021q device (see register_vlan_dev()). Also fix the > inconsistent state when the lower device has been down and its carrier > was changed (when a device is down NETDEV_CHANGE doesn't get generated). > The second issue can be seen f.e. when we have a macvlan on top of a 8021q > device which has been down and its real device has been changing carrier > states, after setting the 8021q device up, the macvlan device will have > the same carrier state as it was before even though the 8021q can now > have a different state. ... > This behaviour seems to have been present since beginning of git history. > > Signed-off-by: Nikolay Aleksandrov <niko...@cumulusnetworks.com> Applied, thanks Nikolay.