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:49:35 +0000 (00:49 -0800)
commit718bcce0b85e457169a4d1ab45e8afe3146d2dd4
tree5da7ea48cf5a79535a608421373ea294827a00dd
parentafc143dfa54ee263430570b1b78dad7cd8577843
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