aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/include
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2022-01-12 17:46:57 +0200
committerPetri Savolainen <petri.savolainen@nokia.com>2022-02-04 15:00:11 +0200
commit4074942b2961d92f525e4f3ada63daccb05f9b6c (patch)
tree4c931a0b0da1bfe82966777cc6cb9d8191e8f16f /platform/linux-generic/include
parent321f334ebdcfd666af781fd9d2651b44349b79b7 (diff)
linux-gen: packet: remove unnecessary fields from _odp_packet_copy_cls_md()
Flow hash and timestamp fields are not set by classifier, so there is no need to copy the metadata in _odp_packet_copy_cls_md(). Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'platform/linux-generic/include')
-rw-r--r--platform/linux-generic/include/odp_packet_internal.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/platform/linux-generic/include/odp_packet_internal.h b/platform/linux-generic/include/odp_packet_internal.h
index de7d62738..cc786c0fe 100644
--- a/platform/linux-generic/include/odp_packet_internal.h
+++ b/platform/linux-generic/include/odp_packet_internal.h
@@ -254,8 +254,6 @@ static inline void _odp_packet_copy_cls_md(odp_packet_hdr_t *dst_hdr,
dst_hdr->p = src_hdr->p;
dst_hdr->dst_queue = src_hdr->dst_queue;
dst_hdr->cos = src_hdr->cos;
- dst_hdr->flow_hash = src_hdr->flow_hash;
- dst_hdr->timestamp = src_hdr->timestamp;
dst_hdr->cls_mark = src_hdr->cls_mark;
}