ofproto-dpif: Use proper flow when using facets.
authorJustin Pettit <jpettit@nicira.com>
Wed, 12 Jun 2013 05:47:12 +0000 (22:47 -0700)
committerJustin Pettit <jpettit@nicira.com>
Wed, 12 Jun 2013 06:10:10 +0000 (23:10 -0700)
The handle_flow_miss_with_facet() function used the facet's flow
information instead of the missed flow.  This corrects that.

Signed-off-by: Justin Pettit <jpettit@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
ofproto/ofproto-dpif.c

index a355e46..53f4af8 100644 (file)
@@ -3766,7 +3766,7 @@ handle_flow_miss_with_facet(struct flow_miss *miss, struct facet *facet,
         if (want_path != SF_FAST_PATH) {
             struct xlate_in xin;
 
-            xlate_in_init(&xin, ofproto, &facet->flow, &facet->initial_vals,
+            xlate_in_init(&xin, ofproto, &miss->flow, &miss->initial_vals,
                           facet->rule, 0, packet);
             xlate_actions_for_side_effects(&xin);
         }
@@ -3796,7 +3796,7 @@ handle_flow_miss_with_facet(struct flow_miss *miss, struct facet *facet,
             put->actions = facet->xout.odp_actions.data;
             put->actions_len = facet->xout.odp_actions.size;
         } else {
-            compose_slow_path(ofproto, &facet->flow, facet->xout.slow,
+            compose_slow_path(ofproto, &miss->flow, facet->xout.slow,
                               op->slow_stub, sizeof op->slow_stub,
                               &put->actions, &put->actions_len);
         }