From ecd12731be2b5a6aa72fba9b987b1e880e5e5ea7 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 9fdc489d..0def71dd 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 -- 2.30.2