Commit f1d22a1e authored by George Wilkie's avatar George Wilkie Committed by David S. Miller

team: account for oper state

Account for operational state when determining port linkup state,
as per Documentation/networking/operstates.txt.
Signed-off-by: default avatarGeorge Wilkie <gwilkie@vyatta.att-mail.com>
Acked-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ddf967bb
...@@ -2918,7 +2918,7 @@ static int team_device_event(struct notifier_block *unused, ...@@ -2918,7 +2918,7 @@ static int team_device_event(struct notifier_block *unused,
case NETDEV_CHANGE: case NETDEV_CHANGE:
if (netif_running(port->dev)) if (netif_running(port->dev))
team_port_change_check(port, team_port_change_check(port,
!!netif_carrier_ok(port->dev)); !!netif_oper_up(port->dev));
break; break;
case NETDEV_UNREGISTER: case NETDEV_UNREGISTER:
team_del_slave(port->team->dev, dev); team_del_slave(port->team->dev, dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment