[ovs-dev] [PATCH 3/4] ofproto: set up helpful flow pointers for odp miss messages

Ethan Jackson ethan at nicira.com
Wed Nov 24 10:40:15 UTC 2010


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 |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c
index c2b38b2..d64f827 100644
--- a/ofproto/ofproto.c
+++ b/ofproto/ofproto.c
@@ -4459,6 +4459,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)) {
-- 
1.7.3.2




More information about the dev mailing list