summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarno Rajahalme <jrajahalme@nicira.com>2014-09-25 14:53:50 -0700
committerJarno Rajahalme <jrajahalme@nicira.com>2014-09-25 14:53:50 -0700
commit29db47ce5304c4c5e3513af2b8eb3e7b6dedec6f (patch)
tree103aca48d2dc462442c6316f9e985bfc4739c437
parent1b7a04e05b6fd15fb4caa7ec20d09ba7aa73399f (diff)
downloadopenvswitch-29db47ce5304c4c5e3513af2b8eb3e7b6dedec6f.tar.gz
lib/ofproto: Sync RSTP operational state after configuration changes.
Otherwise the RSTP port operational state could be out of sync until the next time the port's carrier status changes. Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com> Acked-by: Daniele Venturino <daniele.venturino@m3s.it>
-rw-r--r--ofproto/ofproto-dpif.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c
index 6cc97898a..1d964ddc8 100644
--- a/ofproto/ofproto-dpif.c
+++ b/ofproto/ofproto-dpif.c
@@ -2394,6 +2394,8 @@ set_rstp_port(struct ofport *ofport_,
rstp_port_set(rp, s->port_num, s->priority, s->path_cost,
s->admin_edge_port, s->auto_edge, s->mcheck, ofport);
update_rstp_port_state(ofport);
+ /* Synchronize operational status. */
+ rstp_port_set_mac_operational(rp, ofport->may_enable);
}
static void