summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMahesh Bandewar <maheshb@google.com>2017-04-03 18:38:39 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-06-16 09:52:32 +0200
commitbc5ad405837a9e89595cd603a8d329ec9d96dde9 (patch)
treef571eadf630d9806f6e470a32129ad4d4949102d /include
parentc5b9d36f1e702911ab9724022c8f6c97adc37427 (diff)
bonding: fix active-backup transition
commit 3f3c278c94dd994fe0d9f21679ae19b9c0a55292 upstream. Earlier patch c4adfc822bf5 ("bonding: make speed, duplex setting consistent with link state") made an attempt to keep slave state consistent with speed and duplex settings. Unfortunately link-state transition is used to change the active link especially when used in conjunction with mii-mon. The above mentioned patch broke that logic. Also when speed and duplex settings for a link are updated during a link-event, the link-status should not be changed to invoke correct transition logic. This patch fixes this issue by moving the link-state update outside of the bond_update_speed_duplex() fn and to the places where this fn is called and update link-state selectively. Fixes: c4adfc822bf5 ("bonding: make speed, duplex setting consistent with link state") Signed-off-by: Mahesh Bandewar <maheshb@google.com> Reviewed-by: Andy Gospodarek <andy@greyhouse.net> Signed-off-by: David S. Miller <davem@davemloft.net> Cc: Nate Clark <nate@neworld.us> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions