]> git.proxmox.com Git - ovs.git/commitdiff
ovs-vswitchd: Call flow_extract() for resumed packet in nxt_resume().
authorNuman Siddique <nusiddiq@redhat.com>
Thu, 31 Mar 2016 13:42:34 +0000 (19:12 +0530)
committerBen Pfaff <blp@ovn.org>
Thu, 31 Mar 2016 15:44:27 +0000 (08:44 -0700)
When the packet-in is resumed by vswitchd, it is not setting the
'dp_packet' offsets, because of which it is crashing while executing
the actions.

Signed-off-by: Numan Siddique <nusiddiq@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
ofproto/ofproto-dpif.c

index 99c96de60f341963e248e742891378cc001eac88..530c49a1216823f33ef24db2bfaefa42ac66a901 100644 (file)
@@ -4443,6 +4443,9 @@ nxt_resume(struct ofproto *ofproto_,
     dp_packet_init(&packet, pin->public.packet_len);
     dp_packet_put(&packet, pin->public.packet, pin->public.packet_len);
 
+    struct flow headers;
+    flow_extract(&packet, &headers);
+
     /* Execute the datapath actions on the packet. */
     struct dpif_execute execute = {
         .actions = odp_actions.data,