ofproto: Fix implementation of OFPP_FLOOD.
authorBen Pfaff <blp@nicira.com>
Thu, 14 Oct 2010 00:11:56 +0000 (17:11 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 14 Oct 2010 00:16:27 +0000 (17:16 -0700)
Commit f1588b1fa1 "datapath: Remove implementation of port groups" removed
a "break" statement accidentally, which caused OFPP_FLOOD to send duplicate
packets and to ignore OFPPC_NO_FLOOD.

ofproto/ofproto.c

index e25ce28..5e99fca 100644 (file)
@@ -2577,6 +2577,7 @@ xlate_output_action__(struct action_xlate_ctx *ctx,
     case OFPP_FLOOD:
         flood_packets(ctx->ofproto, ctx->flow.in_port, OFPPC_NO_FLOOD,
                       &ctx->nf_output_iface, ctx->out);
+        break;
     case OFPP_ALL:
         flood_packets(ctx->ofproto, ctx->flow.in_port, 0,
                       &ctx->nf_output_iface, ctx->out);