aboutsummaryrefslogtreecommitdiff
path: root/ofproto
diff options
context:
space:
mode:
authorAaron Rosen <arosen@clemson.edu>2012-02-08 10:59:41 -0800
committerBen Pfaff <blp@nicira.com>2012-02-08 11:13:31 -0800
commit913aa4e441735f3a1e26752f1b6a711823b68848 (patch)
tree66c201df86bbf462fbeabe135f090192bb0c65af /ofproto
parenta67fe5159bec790933e61d341cfb7fa27ac786dc (diff)
ofproto-dpif: Don't output to in_port even if in_port is OFPP_LOCAL.
Signed-off-by: Aaron Rosen <arosen@clemson.edu> [Ben Pfaff added the test.] Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'ofproto')
-rw-r--r--ofproto/ofproto-dpif.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c
index 7c3317f1..31c71a92 100644
--- a/ofproto/ofproto-dpif.c
+++ b/ofproto/ofproto-dpif.c
@@ -4338,11 +4338,9 @@ xlate_output_action__(struct action_xlate_ctx *ctx,
case OFPP_CONTROLLER:
compose_controller_action(ctx, max_len);
break;
- case OFPP_LOCAL:
- compose_output_action(ctx, OFPP_LOCAL);
- break;
case OFPP_NONE:
break;
+ case OFPP_LOCAL:
default:
if (port != ctx->flow.in_port) {
compose_output_action(ctx, port);