Skip to content

Commit

Permalink
ovs-vswitchd: Call flow_extract() for resumed packet in nxt_resume().
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
numansiddique authored and blp committed Mar 31, 2016
1 parent 31491a5 commit 10b3f50
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ofproto/ofproto-dpif.c
Expand Up @@ -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,
Expand Down

0 comments on commit 10b3f50

Please sign in to comment.