Skip to content

Commit

Permalink
dp-packet: use packet reset function.
Browse files Browse the repository at this point in the history
Signed-off-by: Pravin B Shelar <[email protected]>
Acked-by: Jesse Gross <[email protected]>
  • Loading branch information
pshelar committed May 19, 2016
1 parent eb18b2a commit b513ea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dp-packet.h
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ dp_packet_reset_packet(struct dp_packet *b, int off)
{
dp_packet_set_size(b, dp_packet_size(b) - off);
dp_packet_set_data(b, ((unsigned char *) dp_packet_data(b) + off));
b->l2_5_ofs = b->l3_ofs = b->l4_ofs = UINT16_MAX;
dp_packet_reset_offsets(b);
}

/* Returns the RSS hash of the packet 'p'. Note that the returned value is
Expand Down

0 comments on commit b513ea3

Please sign in to comment.