ofproto: Disable STP when unregistering a port.
authorJustin Pettit <jpettit@nicira.com>
Tue, 15 Nov 2011 09:33:08 +0000 (01:33 -0800)
committerJustin Pettit <jpettit@nicira.com>
Tue, 15 Nov 2011 18:18:11 +0000 (10:18 -0800)
commit26fe44c92f472fcccffd0a65d9fa8fdfa165a717
tree2ad0b50904c1c94bbb3727c96d8c08d8538da150
parent7651845860d8a386ee5f446961e02fc362a99eef
ofproto: Disable STP when unregistering a port.

If a port is removed when spanning tree was configured on it, then the
system may crash, since the STP library will try to send packets out a
now non-existent port.  This commit disables STP on ports when they are
destroyed.
ofproto/ofproto-dpif.c
ofproto/ofproto.c