From e81d293375afe757770d339c8bd0cd57e661a1a0 Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Thu, 14 Jul 2011 13:53:34 -0700 Subject: [PATCH] ofproto: Don't commit modifiers on OFPP_NONE outputs. This provides a minor optimization. --- ofproto/ofproto-dpif.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index 228b32c3..a4a56abb 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -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); -- 2.30.2