rstp: Fix global transitions.
authorJarno Rajahalme <jrajahalme@nicira.com>
Wed, 19 Nov 2014 17:27:56 +0000 (09:27 -0800)
committerJarno Rajahalme <jrajahalme@nicira.com>
Wed, 19 Nov 2014 17:27:56 +0000 (09:27 -0800)
commit6448df944262ea6d07136dc6ce7b0ce8f4b02a60
tree16cd203224e3da66f4f350cdaca4ad2fa3b75e94
parent2372c146f7afa2b12e7b60375c728796ff985038
rstp: Fix global transitions.

Global transitions are highest priority transitions.  When the
condition associated with a global transition is met, it supersedes
all other exit conditions including UCT.

Extracted from 802.1D-2004 standard (17.16):

A transition that is global in nature (i.e., a transition that occurs
from any of the possible states if the condition attached to the arrow
is met) is denoted by an open arrow, i.e., no specific state is
identified as the origin of the transition.  When the condition
associated with a global transition is met, it supersedes all other
exit conditions including UCT.  The special global condition BEGIN
supersedes all other global conditions, and once asserted remains
asserted until all state blocks have executed to the point that
variable assignments and other consequences of their execution remain
unchanged.

Signed-off-by: Daniele Venturino <daniele.venturino@m3s.it>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
lib/rstp-state-machines.c