Skip to content

Commit

Permalink
reset info fields in packet_handle_std_init, packet_handle_std_crate …
Browse files Browse the repository at this point in the history
…and packet_handle_std_clone
  • Loading branch information
awgn committed Apr 21, 2017
1 parent 492bd20 commit 22f6c88
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions udatapath/packet_handle_std.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ void packet_handle_std_init(struct packet_handle_std *handle, struct packet *pkt
handle->pkt = pkt;

// hmap_init(&handle->pkt_match.match_fields);
oxm_reset_all(&handle->info);

handle->valid = false;
packet_handle_std_validate(handle);
Expand All @@ -102,9 +103,11 @@ packet_handle_std_create(struct packet *pkt)
handle->pkt = pkt;

// hmap_init(&handle->pkt_match.match_fields);
oxm_reset_all(&handle->info);

handle->valid = false;
packet_handle_std_validate(handle);

return handle;
}

Expand All @@ -122,9 +125,11 @@ packet_handle_std_clone(struct packet *pkt, struct packet_handle_std *handle UNU
clone->pkt = pkt;

// hmap_init(&clone->pkt_match.match_fields);
oxm_reset_all(&clone->info);

clone->valid = false;
packet_handle_std_validate(clone);

return clone;
}

Expand Down

0 comments on commit 22f6c88

Please sign in to comment.