stp: Fix bpdu tx problem in listening state
authorkmindg <kmindg@gmail.com>
Sun, 9 Mar 2014 09:48:52 +0000 (17:48 +0800)
committerBen Pfaff <blp@nicira.com>
Sat, 15 Mar 2014 16:47:02 +0000 (09:47 -0700)
commit2ca476b8ae918f6db2af7c147ea0cb807a734939
treed9cbde9633130eb09c82db98a22267b3204c9eb4
parentc092fa4ec0c8fc59bd4258d3e74572d59fd7f3dc
stp: Fix bpdu tx problem in listening state

The restriction only allows to send bpdu in forwarding state in
compose_output_action__. But a port could send bpdu in listening
and learning state according to comments in lib/stp.h(State of
an STP port).

Until this commit, OVS did not send out BPDUs in listening and learning
states.  But those two states are temporary, the stp port will be in
forwarding state and send out BPDUs eventually (In the default
configuration listening and learning states last 15+15 second).  Therefore,
this bug increased convergence time but did not entirely break STP.

Signed-off-by: kmindg <kmindg@gmail.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/stp.c
lib/stp.h
ofproto/ofproto-dpif-xlate.c