ovn-controller: Fix container flows in table 33.
authorGurucharan Shetty <gshetty@nicira.com>
Tue, 29 Sep 2015 17:12:08 +0000 (10:12 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Tue, 29 Sep 2015 18:21:05 +0000 (11:21 -0700)
The broadcast flows added in table 33 was faulty for
containers. Fix it.

Suggested-by: Russell Bryant <rbryant@redhat.com>
Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Russell Bryant <rbryant@redhat.com>
ovn/controller/physical.c

index 5280916..fc70748 100644 (file)
@@ -474,7 +474,9 @@ physical_run(struct controller_ctx *ctx, enum mf_field_id mff_ovn_geneve,
                 continue;
             }
 
-            if (simap_contains(&localvif_to_ofport, port->logical_port)) {
+            if (simap_contains(&localvif_to_ofport,
+                               port->parent_port
+                               ? port->parent_port : port->logical_port)) {
                 put_load(port->tunnel_key, MFF_LOG_OUTPORT, 0, 32, &ofpacts);
                 put_resubmit(OFTABLE_DROP_LOOPBACK, &ofpacts);
             } else if (port->chassis) {