Recently we have had some discussion about supporting alternate BMC algorithms. This series takes the first step in that direction.
Right now, there is a short passage outside of the FSM functions that directly fiddles with the port state for the transition out of the INITIALIZING state. In order to cleanly support other algorithms, we have to clean this spot up, placing all state transitions under control of the FSM code proper. Thanks in advance for your comments and reviews, Richard Richard Cochran (5): port: Make the finite state machine into a function variable. Change a misleading fault handling function signature. Make the fault handling code more readable. Disentangle initialization from fault clearing. fsm: Make the transition out of INITIALIZING part of the FSM code. fsm.c | 22 ++++++++++++++++++++-- fsm.h | 1 + port.c | 58 ++++++++++++++++++++++++++++++++++------------------------ port.h | 5 ++--- util.c | 1 + 5 files changed, 58 insertions(+), 29 deletions(-) -- 2.1.4 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Linuxptp-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linuxptp-devel
