Convert binding_run to incremental processing.
[cascardo/ovs.git] / ovn / controller / encaps.c
index bd5650a..495f8f6 100644 (file)
@@ -15,6 +15,7 @@
 
 #include <config.h>
 #include "encaps.h"
+#include "binding.h"
 #include "lflow.h"
 
 #include "lib/hash.h"
@@ -234,6 +235,7 @@ tunnel_add(const struct sbrec_chassis *chassis_rec,
     sset_add(&tc.port_names, port_name);
     free(port_name);
     free(ports);
+    binding_reset_processing();
     process_full_encaps = true;
 }
 
@@ -420,6 +422,7 @@ encaps_run(struct controller_ctx *ctx, const struct ovsrec_bridge *br_int,
                     hmap_remove(&tc.tunnel_hmap_by_uuid,
                                 &port_hash->uuid_node);
                     free(port_hash);
+                    binding_reset_processing();
                 }
                 continue;
             }