aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/include/odp_timer_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_timer_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_timer_internal.h')
-rw-r--r--platform/linux-generic/include/odp_timer_internal.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/platform/linux-generic/include/odp_timer_internal.h b/platform/linux-generic/include/odp_timer_internal.h
index 2a7173d29..b83591446 100644
--- a/platform/linux-generic/include/odp_timer_internal.h
+++ b/platform/linux-generic/include/odp_timer_internal.h
@@ -1,5 +1,5 @@
/* Copyright (c) 2014-2018, Linaro Limited
- * Copyright (c) 2021, Nokia
+ * Copyright (c) 2021-2022, Nokia
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@@ -40,6 +40,9 @@ typedef struct ODP_ALIGNED_CACHE odp_timeout_hdr_t {
} odp_timeout_hdr_t;
+ODP_STATIC_ASSERT(sizeof(odp_timeout_hdr_t) <= ODP_CACHE_LINE_SIZE,
+ "TIMEOUT_HDR_SIZE_ERROR");
+
/* A larger decrement value should be used after receiving events compared to
* an 'empty' call. */
void _odp_timer_run_inline(int dec);