It can be used to restore headroom later. Does it possible a headroom to be > sizeof(int32)/2?
Signed-off-by: Ivan Khoronzhuk <ivan.khoronz...@linaro.org> --- include/odp/api/packet_io.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/odp/api/packet_io.h b/include/odp/api/packet_io.h index cf92751..7b9d82a 100644 --- a/include/odp/api/packet_io.h +++ b/include/odp/api/packet_io.h @@ -356,12 +356,12 @@ int odp_pktio_skip_set(odp_pktio_t pktio, uint32_t offset); * Must not exceed the implementation * defined ODP_PACKET_MAX_HEADROOM. * - * @retval 0 on success + * @retval prevoius headroom * @retval <0 on failure * * @note Optional. */ -int odp_pktio_headroom_set(odp_pktio_t pktio, uint32_t headroom); +int32_t odp_pktio_headroom_set(odp_pktio_t pktio, int32_t headroom); /** * Get printable value for an odp_pktio_t -- 1.9.1 _______________________________________________ lng-odp mailing list lng-odp@lists.linaro.org https://lists.linaro.org/mailman/listinfo/lng-odp