Move the pull_tail() internal routine to odp_packet.c for consistency with other internal head/tail manipulation routines.
Signed-off-by: Bill Fischofer <[email protected]> --- platform/linux-generic/include/odp_packet_internal.h | 9 --------- platform/linux-generic/odp_packet.c | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/platform/linux-generic/include/odp_packet_internal.h b/platform/linux-generic/include/odp_packet_internal.h index 0a9f177..589e204 100644 --- a/platform/linux-generic/include/odp_packet_internal.h +++ b/platform/linux-generic/include/odp_packet_internal.h @@ -184,15 +184,6 @@ static inline void copy_packet_cls_metadata(odp_packet_hdr_t *src_hdr, dst_hdr->op_result = src_hdr->op_result; } -static inline void pull_tail(odp_packet_hdr_t *pkt_hdr, uint32_t len) -{ - int last = pkt_hdr->buf_hdr.segcount - 1; - - pkt_hdr->tailroom += len; - pkt_hdr->frame_len -= len; - pkt_hdr->buf_hdr.seg[last].len -= len; -} - static inline uint32_t packet_len(odp_packet_hdr_t *pkt_hdr) { return pkt_hdr->frame_len; diff --git a/platform/linux-generic/odp_packet.c b/platform/linux-generic/odp_packet.c index 60eef3a..d0f7633 100644 --- a/platform/linux-generic/odp_packet.c +++ b/platform/linux-generic/odp_packet.c @@ -145,6 +145,15 @@ static inline void push_tail(odp_packet_hdr_t *pkt_hdr, uint32_t len) pkt_hdr->buf_hdr.seg[last].len += len; } +static inline void pull_tail(odp_packet_hdr_t *pkt_hdr, uint32_t len) +{ + int last = pkt_hdr->buf_hdr.segcount - 1; + + pkt_hdr->tailroom += len; + pkt_hdr->frame_len -= len; + pkt_hdr->buf_hdr.seg[last].len -= len; +} + /* Copy all metadata for segmentation modification. Segment data and lengths * are not copied. */ static inline void packet_seg_copy_md(odp_packet_hdr_t *dst, -- 2.5.0
