X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=vswitchd%2Fbridge.c;h=c2c4579c56fc292a8923e0d3abcc333608086163;hb=4c1b8fc2e514344a55789d6ac9909ce904137578;hp=197b6ed44219fdc999fd23b68973f4f87eb1d944;hpb=0b8b6f71d5621a726a3bf5aa1bbee27ed1f4a8fe;p=openvswitch diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 197b6ed4..c2c4579c 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -526,13 +526,10 @@ collect_in_band_managers(const struct ovsrec_open_vswitch *ovs_cfg, struct shash targets; size_t i; - /* Collect all of the potential targets, as the union of the "managers" - * column and the "targets" columns of the rows pointed to by - * "manager_options", excluding any that are out-of-band. */ + /* Collect all of the potential targets from the "targets" columns of the + * rows pointed to by "manager_options", excluding any that are + * out-of-band. */ shash_init(&targets); - for (i = 0; i < ovs_cfg->n_managers; i++) { - shash_add_once(&targets, ovs_cfg->managers[i], NULL); - } for (i = 0; i < ovs_cfg->n_manager_options; i++) { struct ovsrec_manager *m = ovs_cfg->manager_options[i];