ofproto-dpif: Cleanup STP on ports when disabled on their bridge.
authorEthan Jackson <ethan@nicira.com>
Sun, 19 Feb 2012 08:34:28 +0000 (00:34 -0800)
committerEthan Jackson <ethan@nicira.com>
Sun, 19 Feb 2012 08:56:40 +0000 (00:56 -0800)
commit1833352c33fb73077b60e618940ad094c426a4cc
tree74d2fdb1b7339fc034be46cb791f19974ed474c9
parent270fce15281fcb75eddc0788752a9efd649b9ca2
ofproto-dpif: Cleanup STP on ports when disabled on their bridge.

When STP is enabled on a bridge, the STP module puts its ports in
an STP_LISTENING state until STP converges.  This causes all
traffic destined for these ports to be dropped.  If STP is disabled
on the bridge, but not explicitly disabled on its ports, the bridge
fails to remove the STP state from these ports.  Therefore, if a
port is in an STP_LISTENING state, it will remain in that state and
continue to drop all traffic indefinitely.  This patch fixes the
issue.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
Bug #9157.
ofproto/ofproto-dpif.c