]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
bonding: commit link status change after propose
authorWANG Cong <xiyou.wangcong@gmail.com>
Tue, 25 Jul 2017 16:44:25 +0000 (09:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Jul 2017 20:41:21 +0000 (13:41 -0700)
commitd94708a553022bf012fa95af10532a134eeb5a52
treead9792dccf48bf35039bafff28fed3e5d4ed696a
parent9688f9b020263c4a17471d09bb18e34eccc1c0a5
bonding: commit link status change after propose

Commit de77ecd4ef02 ("bonding: improve link-status update in mii-monitoring")
moves link status commitment into bond_mii_monitor(), but it still relies
on the return value of bond_miimon_inspect() as the hint. We need to return
non-zero as long as we propose a link status change.

Fixes: de77ecd4ef02 ("bonding: improve link-status update in mii-monitoring")
Reported-by: Benjamin Gilbert <benjamin.gilbert@coreos.com>
Tested-by: Benjamin Gilbert <benjamin.gilbert@coreos.com>
Cc: Mahesh Bandewar <maheshb@google.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Acked-by: Mahesh Bandewar <maheshb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c