Corrected race condition where the MS/TP Master Node FSM may miss the first packet since it may not run until after the first packet has arrived if the ReceivedValidFrame flag is set to false during MSTP_MASTER_STATE_INITIALIZE. Thank you to anand!

This commit is contained in:
skarg
2007-11-16 13:27:51 +00:00
parent 9762f415ba
commit 35f2aaed00
5 changed files with 0 additions and 941 deletions
-2
View File
@@ -616,8 +616,6 @@ bool MSTP_Master_Node_FSM(volatile struct mstp_port_struct_t * mstp_port)
/* receives the token */
mstp_port->TokenCount = Npoll;
mstp_port->SoleMaster = false;
mstp_port->ReceivedValidFrame = false;
mstp_port->ReceivedInvalidFrame = false;
mstp_port->master_state = MSTP_MASTER_STATE_IDLE;
transition_now = true;
break;