diff options
author | George Wilkie <gwilkie@vyatta.att-mail.com> | 2018-04-19 11:34:14 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-20 11:05:19 -0400 |
commit | f1d22a1e0595639bcfef9941ebc0e3cfe9711009 (patch) | |
tree | 4cf9196b4bb5a11a62b2bc5d019926fde7126b1a /drivers/net/team | |
parent | ddf967bb6bf26b869339101005880dcfd2363ada (diff) | |
download | blackbird-op-linux-f1d22a1e0595639bcfef9941ebc0e3cfe9711009.tar.gz blackbird-op-linux-f1d22a1e0595639bcfef9941ebc0e3cfe9711009.zip |
team: account for oper state
Account for operational state when determining port linkup state,
as per Documentation/networking/operstates.txt.
Signed-off-by: George Wilkie <gwilkie@vyatta.att-mail.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/team')
-rw-r--r-- | drivers/net/team/team.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c index a6c6ce19eeee..8a8611095ca0 100644 --- a/drivers/net/team/team.c +++ b/drivers/net/team/team.c @@ -2918,7 +2918,7 @@ static int team_device_event(struct notifier_block *unused, case NETDEV_CHANGE: if (netif_running(port->dev)) team_port_change_check(port, - !!netif_carrier_ok(port->dev)); + !!netif_oper_up(port->dev)); break; case NETDEV_UNREGISTER: team_del_slave(port->team->dev, dev); |