mirror of
https://github.com/corundum/corundum.git
synced 2025-01-16 08:12:53 +08:00
d6b2a38a92
Assume that the hardware link status is "down" when a netdev is brought "up" administratively ("ip link set dev ... up"). This way a change of link status is always occuring, in case hardware link status is indeed still "up" at that point in time. Otherwise bringing a netdev administratively "down" and "up" again, while the hardware was "up" before and stays "up" during the administrative "down" period, results in no netif_carrier_on() being called, because struct mqnic_priv::link_status does not change. Signed-off-by: Joachim Foerster <joachim.foerster@missinglinkelectronics.com>