ofproto: set up helpful flow pointers for odp miss messages
authorEthan Jackson <ethan@nicira.com>
Wed, 24 Nov 2010 10:13:15 +0000 (02:13 -0800)
committerEthan Jackson <ethan@nicira.com>
Mon, 29 Nov 2010 22:47:14 +0000 (14:47 -0800)
This flow copies the header pointers calculated in
handle_odp_miss_msg to the relevant packet so they can be used
later on.

ofproto/ofproto.c

index 9a4702e9f2427dd0e0d46e27be4d450e2616fd99..6499c9fd4e1b4aaee567674b51d68ae998aed3e6 100644 (file)
@@ -4462,6 +4462,11 @@ handle_odp_miss_msg(struct ofproto *p, struct ofpbuf *packet)
     payload.size = msg->length - sizeof *msg;
     flow_extract(&payload, msg->arg, msg->port, &flow);
 
+    packet->l2 = payload.l2;
+    packet->l3 = payload.l3;
+    packet->l4 = payload.l4;
+    packet->l7 = payload.l7;
+
     /* Check with in-band control to see if this packet should be sent
      * to the local port regardless of the flow table. */
     if (in_band_msg_in_hook(p->in_band, &flow, &payload)) {