From 5f7bc817bb74992687075050ec6b6daf32e184b4 Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Tue, 8 Nov 2011 17:31:04 -0800 Subject: [PATCH] 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 --- ofproto/ofproto-dpif.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index b53452d14..24d86764c 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -1070,6 +1070,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 -- 2.47.0