From: Justin Pettit Date: Wed, 9 Nov 2011 01:31:04 +0000 (-0800) Subject: ofproto-dpif: Actually disable STP on port when disabling STP on port. X-Git-Tag: v1.4.0~196 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=ecd12731be2b5a6aa72fba9b987b1e880e5e5ea7;p=sliver-openvswitch.git ofproto-dpif: Actually disable STP on port when disabling STP on port. When disabling STP on a port that has it enabled on the bridge, STP was not actually being disabled on the port. This commit directly calls the update function in this situation. Reported-by: Paul Ingram --- diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index 9fdc489da..0def71dd2 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -1065,6 +1065,7 @@ set_stp_port(struct ofport *ofport_, if (sp) { ofport->stp_port = NULL; stp_port_disable(sp); + update_stp_port_state(ofport); } return 0; } else if (sp && stp_port_no(sp) != s->port_num