platform/linux-generic/odp_packet.c
static inline void packet_seg_copy_md(odp_packet_hdr_t *dst,
				      odp_packet_hdr_t *src)
{
	dst->p = src->p;

	/* lengths are not copied:
	 *   .frame_len
	 *   .headroom
	 *   .tailroom
	 */

	dst->input     = src->input;
	dst->dst_queue = src->dst_queue;
	dst->flow_hash = src->flow_hash;
	dst->timestamp = src->timestamp;
	dst->op_result = src->op_result;

	/* buffer header side packet metadata */
	dst->buf_hdr.buf_u64    = src->buf_hdr.buf_u64;
	dst->buf_hdr.uarea_addr = src->buf_hdr.uarea_addr;
	dst->buf_hdr.uarea_size = src->buf_hdr.uarea_size;

	/* segmentation data is not copied:
	 *   buf_hdr.seg[]
	 *   buf_hdr.segcount
	 */
}
/* Copy all metadata for segmentation modification. Segment data and lengths
 * are not copied. */
Copy all metadata for segmentation modification. Segment data and lengths
are not copied.
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,
				      odp_packet_hdr_t *src)
{
	dst->p = src->p;
	dst->input     = src->input;
	dst->dst_queue = src->dst_queue;
	dst->flow_hash = src->flow_hash;
	dst->timestamp = src->timestamp;
	dst->op_result = src->op_result;
	dst->buf_hdr.buf_u64    = src->buf_hdr.buf_u64;
	dst->buf_hdr.uarea_addr = src->buf_hdr.uarea_addr;
	dst->buf_hdr.uarea_size = src->buf_hdr.uarea_size;
}
static inline void packet_seg_copy_md ( odp_packet_hdr_t * dst , odp_packet_hdr_t * src ) { dst -> p = src -> p ; dst -> input = src -> input ; dst -> dst_queue = src -> dst_queue ; dst -> flow_hash = src -> flow_hash ; dst -> timestamp = src -> timestamp ; dst -> op_result = src -> op_result ; dst -> buf_hdr . buf_u64 = src -> buf_hdr . buf_u64 ; dst -> buf_hdr . uarea_addr = src -> buf_hdr . uarea_addr ; dst -> buf_hdr . uarea_size = src -> buf_hdr . uarea_size ; }
Copy all metadata for segmentation modification.
Copy all metadata for segmentation modification .
/* lengths are not copied:
	 *   .frame_len
	 *   .headroom
	 *   .tailroom
	 */ /* buffer header side packet metadata */ /* segmentation data is not copied:
	 *   buf_hdr.seg[]
	 *   buf_hdr.segcount
	 */