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 228b32c..a4a56ab 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);