Skip to content

Commit

Permalink
Merge branch 'master' into bookworm
Browse files Browse the repository at this point in the history
  • Loading branch information
zjswhhh committed Mar 15, 2024
2 parents 005af1c + dd61844 commit 2381469
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/link_manager/LinkManagerStateMachineActiveStandby.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,9 @@ void ActiveStandbyStateMachine::handleStateChange(LinkStateEvent &event, link_st
// There is a problem with this approach as it will hide link flaps that result in lost heart-beats.
initLinkProberState(nextState, true);
// enterMuxWaitState(nextState);

// reset mux probing backoff factor when link goes up
mMuxUnknownBackoffFactor = 1;
} else if (ls(mCompositeState) == link_state::LinkState::Up &&
ls(nextState) == link_state::LinkState::Down &&
ms(mCompositeState) != mux_state::MuxState::Label::Standby) {
Expand All @@ -575,6 +578,10 @@ void ActiveStandbyStateMachine::handleStateChange(LinkStateEvent &event, link_st

mActiveUnknownUpCount = 0;
mStandbyUnknownUpCount = 0;

mWaitActiveUpCount = 0;
mWaitStandbyUpBackoffFactor = 1;
mUnknownActiveUpBackoffFactor = 1;
} else {
mStateTransitionHandler[ps(nextState)][ms(nextState)][ls(nextState)](nextState);
}
Expand Down

0 comments on commit 2381469

Please sign in to comment.