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:43:49 +0000 (09:43 -0700)
commit3f2eec36b8675623de0041043827f3a5feb1edc8
tree5da33e868ba1923df127da0ba9d5c338414b50a7
parent42e4cc97a95f2d16dbee11a041dc74b0f1178f7d
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