]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
team: use operstate consistently for linkup
authorGeorge Wilkie <gwilkie@vyatta.att-mail.com>
Wed, 20 Feb 2019 08:19:11 +0000 (08:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Feb 2019 19:40:23 +0000 (11:40 -0800)
commit8c7a77267eec81dd81af8412f29e50c0b1082548
treeea0abef5c43ee2f5d52c8d09e7ef32fa8620d7d7
parentc286909fe5458f69e533c845b757fd2c35064d26
team: use operstate consistently for linkup

When a port is added to a team, its initial state is derived
from netif_carrier_ok rather than netif_oper_up.
If it is carrier up but operationally down at the time of being
added, the port state.linkup will be set prematurely.
port state.linkup should be set consistently using
netif_oper_up rather than netif_carrier_ok.

Fixes: f1d22a1e0595 ("team: account for oper state")
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>
drivers/net/team/team.c