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 e25ce28c669a06c72451da618ebdd56e6c4cef1b..5e99fcab188390d276a5e9a80407118b20609aa6 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);