ovn-controller: Add clarifying comment about main loop in binding_run().
authorJustin Pettit <jpettit@ovn.org>
Fri, 11 Dec 2015 01:56:22 +0000 (17:56 -0800)
committerJustin Pettit <jpettit@ovn.org>
Fri, 11 Dec 2015 17:41:50 +0000 (09:41 -0800)
Signed-off-by: Justin Pettit <jpettit@ovn.org>
Acked-by: Russell Bryant <russell@ovn.org>
ovn/controller/binding.c

index 952410c..1854ff4 100644 (file)
@@ -150,6 +150,9 @@ binding_run(struct controller_ctx *ctx, const struct ovsrec_bridge *br_int,
         ctx->ovnsb_idl_txn,"ovn-controller: updating port bindings for '%s'",
         chassis_id);
 
+    /* Run through each binding record to see if it is resident on this
+     * chassis and update the binding accordingly.  This includes both
+     * directly connected logical ports and children of those ports. */
     SBREC_PORT_BINDING_FOR_EACH(binding_rec, ctx->ovnsb_idl) {
         if (sset_find_and_delete(&lports, binding_rec->logical_port) ||
                 (binding_rec->parent_port && binding_rec->parent_port[0] &&