aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-dpdk/include/odp_timer_internal.h
diff options
context:
space:
mode:
authorTuomas Taipale <tuomas.taipale@nokia.com>2023-06-20 06:15:32 +0000
committerTuomas Taipale <95341842+TuomasTaipale@users.noreply.github.com>2023-06-29 11:27:12 +0300
commitd6461dfb25798aeb91bea58ebcd6ca6b128a835a (patch)
treed3ccaf166eade982033b03c287cb407981a7ddbd /platform/linux-dpdk/include/odp_timer_internal.h
parent45c99f0e213463bb2410882b9d63ab80cc522f6b (diff)
linux-dpdk: remove rte_mbuf from common event header
Remove `struct rte_mbuf` from the common event header. Concrete pool element types now have an explicit `struct rte_mbuf` field followed by a new `_odp_event_hdr_int_t` type field which is the existing `_odp_event_hdr_t` with `struct rte_mbuf` field removed. `_odp_event_hdr_t` remains but only for casting purposes. The removal results in a saving of full cache line for each type. Signed-off-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
Diffstat (limited to 'platform/linux-dpdk/include/odp_timer_internal.h')
-rw-r--r--platform/linux-dpdk/include/odp_timer_internal.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/platform/linux-dpdk/include/odp_timer_internal.h b/platform/linux-dpdk/include/odp_timer_internal.h
index f504a20aa..d77898e9a 100644
--- a/platform/linux-dpdk/include/odp_timer_internal.h
+++ b/platform/linux-dpdk/include/odp_timer_internal.h
@@ -1,5 +1,5 @@
/* Copyright (c) 2014-2018, Linaro Limited
- * Copyright (c) 2021-2022, Nokia
+ * Copyright (c) 2021-2023, Nokia
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
@@ -26,8 +26,11 @@
* Internal Timeout header
*/
typedef struct ODP_ALIGNED_CACHE odp_timeout_hdr_t {
- /* Common event header */
- _odp_event_hdr_t event_hdr;
+ /* Underlying DPDK rte_mbuf */
+ struct rte_mbuf mb;
+
+ /* Common internal header */
+ _odp_event_hdr_int_t event_hdr;
/* Requested expiration time */
uint64_t expiration;