summaryrefslogtreecommitdiff
path: root/lib/rstp-state-machines.c
diff options
context:
space:
mode:
authorDaniele Venturino <daniele.venturino@m3s.it>2014-11-14 14:07:50 -0800
committerJarno Rajahalme <jrajahalme@nicira.com>2014-11-14 14:07:50 -0800
commit55f8993cd0b2c4c476a58ec72ab3f8b05d348803 (patch)
tree5661b5dfbc315fd35f19804ee4389ffde0304526 /lib/rstp-state-machines.c
parent75735c8038564a10d11692684de9257f91e74e66 (diff)
downloadopenvswitch-55f8993cd0b2c4c476a58ec72ab3f8b05d348803.tar.gz
rstp-state-machines: Fix updt_roles_tree().
If the DesignatedBridgeID Bridge Address component is equal to that component of the Bridge's own bridge priority vector skip to the next port. Signed-off-by: Daniele Venturino <daniele.venturino@m3s.it> Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
Diffstat (limited to 'lib/rstp-state-machines.c')
-rw-r--r--lib/rstp-state-machines.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rstp-state-machines.c b/lib/rstp-state-machines.c
index e3ddba3d8..a669cad5e 100644
--- a/lib/rstp-state-machines.c
+++ b/lib/rstp-state-machines.c
@@ -312,7 +312,7 @@ updt_roles_tree__(struct rstp *r)
if ((candidate_vector.designated_bridge_id & 0xffffffffffffULL) ==
(r->bridge_priority.designated_bridge_id & 0xffffffffffffULL)) {
- break;
+ continue;
}
if (compare_rstp_priority_vectors(&candidate_vector,
&best_vector) == SUPERIOR) {