Commit 8773e590 authored by Jean-Claude BAU's avatar Jean-Claude BAU

BMCA: Do not leave from INITIALIZING state

If a port is in INITIALIZING state, we must not leave from this state as
for a GM we must stay in this state until the GM is locked.
parent 3c3fa1a5
...@@ -617,9 +617,10 @@ static int bmc_state_decision(struct pp_instance *ppi) ...@@ -617,9 +617,10 @@ static int bmc_state_decision(struct pp_instance *ppi)
pp_diag(ppi, bmc, 2, "%s\n", __func__); pp_diag(ppi, bmc, 2, "%s\n", __func__);
if ( (ppi->state == PPS_FAULTY)) if ( (ppi->state == PPS_FAULTY) || (ppi->state==PPS_INITIALIZING) )
/* Exit from FAULTY state is implementation specific and implemented in state_faulty.c */ /* - Exit from FAULTY state is implementation specific and implemented in state_faulty.c */
return PPS_FAULTY; /* - If INITIALIZING state in progress, do not change it. It may wait for GM to be locked */
return ppi->state;
if (is_slaveOnly(DSDEF(ppi))) { if (is_slaveOnly(DSDEF(ppi))) {
if ( !erbestValid ) if ( !erbestValid )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment