47be42c347
In conditions where none of the switch ports is connected during boot, the priv->port[i].link != priv->port[i].phydev->link condition is false since both link values are equal (false). The carrier of the switch netdev is never set to off and the link state reported by ip is UNKNOWN. Turn the carrier off if none of the switch ports has a link, regardless whether something has been changed. Add a check for a carrier to prevent unnecessary calls to netif_carrier_off() if the carrier is already off. Based on a patch send by Martin Schiller. Signed-off-by: Mathias Kresin <dev@kresin.me> |
||
---|---|---|
.. | ||
ase | ||
base-files | ||
dts | ||
falcon | ||
files/firmware/lantiq | ||
image | ||
patches-4.9 | ||
xrx200 | ||
xway | ||
xway_legacy | ||
config-4.9 | ||
Makefile | ||
modules.mk |