ofproto: Don't commit modifiers on OFPP_NONE outputs.
authorEthan Jackson <ethan@nicira.com>
Thu, 14 Jul 2011 20:53:34 +0000 (13:53 -0700)
committerEthan Jackson <ethan@nicira.com>
Tue, 19 Jul 2011 18:34:25 +0000 (11:34 -0700)
This provides a minor optimization.

ofproto/ofproto-dpif.c

index 228b32c35416cfb1839ef0b3bf98069821be2d54..a4a56abb5649c7fa156c0d387fdd4f28f3cfc26a 100644 (file)
@@ -2935,6 +2935,8 @@ xlate_output_action__(struct action_xlate_ctx *ctx,
     case OFPP_LOCAL:
         add_output_action(ctx, OFPP_LOCAL);
         break;
+    case OFPP_NONE:
+        break;
     default:
         if (port != ctx->flow.in_port) {
             add_output_action(ctx, port);