summaryrefslogtreecommitdiff
path: root/ovn
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2016-12-19 19:34:02 -0800
committerBen Pfaff <blp@ovn.org>2016-12-19 21:02:10 -0800
commit0df7150047f18f2601c5033a07eea66ef4528be8 (patch)
tree4461f6c6963822c5bcace6ef62e9de54884dba14 /ovn
parentba7283e97fe80920a222249eb9f6f4211ccb4ccf (diff)
downloadopenvswitch-0df7150047f18f2601c5033a07eea66ef4528be8.tar.gz
ovn-controller: Don't enable IDL tracking.
IDL tracking has a cost and nothing in ovn-controller was getting any value for that cost, so disable it. Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Andy Zhou <azhou@ovn.org>
Diffstat (limited to 'ovn')
-rw-r--r--ovn/controller/ovn-controller.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/ovn/controller/ovn-controller.c b/ovn/controller/ovn-controller.c
index 4fbf45534..a61f2d185 100644
--- a/ovn/controller/ovn-controller.c
+++ b/ovn/controller/ovn-controller.c
@@ -456,15 +456,11 @@ main(int argc, char *argv[])
physical_register_ovs_idl(ovs_idl_loop.idl);
ovsdb_idl_get_initial_snapshot(ovs_idl_loop.idl);
- /* Connect to OVN SB database. */
+ /* Connect to OVN SB database and get a snapshot. */
char *ovnsb_remote = get_ovnsb_remote(ovs_idl_loop.idl);
struct ovsdb_idl_loop ovnsb_idl_loop = OVSDB_IDL_LOOP_INITIALIZER(
ovsdb_idl_create(ovnsb_remote, &sbrec_idl_class, true, true));
ovsdb_idl_omit_alert(ovnsb_idl_loop.idl, &sbrec_chassis_col_nb_cfg);
-
- /* Track the southbound idl. */
- ovsdb_idl_track_add_all(ovnsb_idl_loop.idl);
-
ovsdb_idl_get_initial_snapshot(ovnsb_idl_loop.idl);
/* Initialize connection tracking zones. */
@@ -587,7 +583,6 @@ main(int argc, char *argv[])
pinctrl_wait(&ctx);
}
ovsdb_idl_loop_commit_and_wait(&ovnsb_idl_loop);
- ovsdb_idl_track_clear(ovnsb_idl_loop.idl);
if (ovsdb_idl_loop_commit_and_wait(&ovs_idl_loop) == 1) {
struct shash_node *iter, *iter_next;
@@ -599,8 +594,6 @@ main(int argc, char *argv[])
}
}
}
- ovsdb_idl_track_clear(ovs_idl_loop.idl);
-
poll_block();
if (should_service_stop()) {
exiting = true;