Fixes missing link state event propagation for an aliased device in case a new device is added
as the link state has the last known status of the old device possible resulting into
no link state change detection.
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
Acked-by: Felix Fietkau <nbd@nbd.name>
device_set_ifindex(&alias->dev, dev->ifindex);
device_set_ifname(&alias->dev, dev->ifname);
device_add_user(&alias->dep, dev);
- } else
+ } else {
device_set_ifname(&alias->dev, "");
+ device_set_link(&alias->dev, false);
+ }
}
static int