dp-packet: use dp_packet_reset_offsets during initialisation
authorSimon Horman <simon.horman@netronome.com>
Tue, 1 Dec 2015 06:03:09 +0000 (15:03 +0900)
committerBen Pfaff <blp@ovn.org>
Tue, 1 Dec 2015 18:27:55 +0000 (10:27 -0800)
commite496a484cf53f29f3bf663d2d18a4cd22ea761ea
tree39a448780bfb24549fd4ade3f9e2b0f789348e3a
parent66026437ba16370468b046c7eb1ebd13d8540644
dp-packet: use dp_packet_reset_offsets during initialisation

Use dp_packet_reset_offsets() in dp_packet_init__() to make it
clearer that initialisation includes a reset of packets
packets the same way as callers to dp_packet_reset_offsets() reset packets.

Signed-off-by: Simon Horman <simon.horman@netronome.com>
Acked-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/dp-packet.c