rstp: Properly disable an RSTP port before deleting it.
authorJarno Rajahalme <jrajahalme@nicira.com>
Tue, 29 Sep 2015 20:38:28 +0000 (13:38 -0700)
committerJarno Rajahalme <jrajahalme@nicira.com>
Mon, 12 Oct 2015 18:34:51 +0000 (11:34 -0700)
commite73e916510ce46af85fee4dd52127a699a244820
treea1b9be8351729c55398b004e044129684519b89f
parentc7e4f0b2c36a930e8a0a4a256f848356d730fea7
rstp: Properly disable an RSTP port before deleting it.

RSTP may end up referencing stale memory if a port is removed without
disabling it first.

This patch, together with the previous patch by Daniele Venturino, was
tested to resolve a crach by Daniel Swahn.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Tested-by: Daniel Swahn <daniel.swahn@clavister.com>
ofproto/ofproto-dpif.c