aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/include/odp_packet_internal.h
diff options
context:
space:
mode:
authorMatias Elo <matias.elo@nokia.com>2022-01-10 10:05:47 +0200
committerMatias Elo <matias.elo@nokia.com>2022-01-12 16:34:48 +0200
commit0ca93faa726b43a3dc006036d5f193c2297fc225 (patch)
tree62b5e2343c52bf9fc77847d512653f9b5ff9f9b8 /platform/linux-generic/include/odp_packet_internal.h
parentf7f7d94eaeeaf502b13c0ea4a18fa8addfa79c22 (diff)
linux-gen: packet: move user area pointer to packet header
Move user area pointer from _odp_event_hdr_t to odp_packet_hdr_t since it's only used by packet buffers. odp_timeout_hdr_t fits now into a single cache line. Signed-off-by: Matias Elo <matias.elo@nokia.com> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com>
Diffstat (limited to 'platform/linux-generic/include/odp_packet_internal.h')
-rw-r--r--platform/linux-generic/include/odp_packet_internal.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/linux-generic/include/odp_packet_internal.h b/platform/linux-generic/include/odp_packet_internal.h
index 6372705db..9d62f67d6 100644
--- a/platform/linux-generic/include/odp_packet_internal.h
+++ b/platform/linux-generic/include/odp_packet_internal.h
@@ -120,6 +120,9 @@ typedef struct ODP_ALIGNED_CACHE odp_packet_hdr_t {
/* Flow hash value */
uint32_t flow_hash;
+ /* User area pointer */
+ void *uarea_addr;
+
/* User context pointer */
const void *user_ptr;