aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/include/odp_packet_internal.h
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2022-03-01 13:56:00 +0200
committerGitHub <noreply@github.com>2022-03-01 13:56:00 +0200
commit6c96e7253082bdc5b3a6a6f39a1ced8200a39ee0 (patch)
tree908bd33aff383744a8cc18e4f8374c22ed61c46c /platform/linux-generic/include/odp_packet_internal.h
parent09a1f287c7956b36db8b3320a45e10a22058c269 (diff)
parent4c9bd497c64a8dada64e205c57c6db7dddacb1ec (diff)
Merge ODP v1.34.0.0v1.34.0.0_DPDK_19.11
Merge ODP linux-generic v1.34.0.0 into linux-dpdk.
Diffstat (limited to 'platform/linux-generic/include/odp_packet_internal.h')
-rw-r--r--platform/linux-generic/include/odp_packet_internal.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/platform/linux-generic/include/odp_packet_internal.h b/platform/linux-generic/include/odp_packet_internal.h
index 7c9b7735e..a230c3b76 100644
--- a/platform/linux-generic/include/odp_packet_internal.h
+++ b/platform/linux-generic/include/odp_packet_internal.h
@@ -1,5 +1,5 @@
/* Copyright (c) 2013-2018, Linaro Limited
- * Copyright (c) 2019-2021, Nokia
+ * Copyright (c) 2019-2022, Nokia
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@@ -19,6 +19,7 @@ extern "C" {
#endif
#include <odp/api/align.h>
+#include <odp/api/atomic.h>
#include <odp/api/debug.h>
#include <odp/api/packet.h>
#include <odp/api/plat/packet_inline_types.h>
@@ -117,9 +118,18 @@ typedef struct ODP_ALIGNED_CACHE odp_packet_hdr_t {
/* Classifier destination queue */
odp_queue_t dst_queue;
+ /* Reference count */
+ odp_atomic_u32_t ref_cnt;
+
/* Flow hash value */
uint32_t flow_hash;
+ /* User area pointer */
+ void *uarea_addr;
+
+ /* User context pointer */
+ const void *user_ptr;
+
/* Classifier mark */
uint16_t cls_mark;