]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: handle link transition from FAIL to UP correctly
authorMahesh Bandewar <maheshb@google.com>
Wed, 12 Apr 2017 05:36:00 +0000 (22:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Apr 2017 17:48:59 +0000 (13:48 -0400)
commit1bb427052d980a6afec31b39380d26b182c9db16
tree82bd0507a063dacfeeb0512e9cc567c5381e5dfe
parent0ddfd05f9b840cba49909ba299f52c0109a7285f
bonding: handle link transition from FAIL to UP correctly

When link transitions from LINK_FAIL to LINK_UP, the commit phase is
not called. This leads to an erroneous state causing slave-link state to
get stuck in "going down" state while its speed and duplex are perfectly
fine. This issue is a side-effect of splitting link-set into propose and
commit phases introduced by 7bd12da0d40b ("bonding: improve link-status
update in mii-monitoring")

This patch fixes these issues by calling commit phase whenever link
state change is proposed.

Fixes: 7bd12da0d40b ("bonding: improve link-status update in mii-monitoring")
Signed-off-by: Mahesh Bandewar <maheshb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c