diff options
author | Matias Elo <matias.elo@nokia.com> | 2022-01-10 10:05:47 +0200 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2022-01-12 16:34:48 +0200 |
commit | 0ca93faa726b43a3dc006036d5f193c2297fc225 (patch) | |
tree | 62b5e2343c52bf9fc77847d512653f9b5ff9f9b8 /platform/linux-generic/include/odp_packet_internal.h | |
parent | f7f7d94eaeeaf502b13c0ea4a18fa8addfa79c22 (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.h | 3 |
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; |