[(v20.11),2/2] eventdev: reserve space in timer structs for extension
Checks
Commit Message
From: Pavan Nikhilesh <pbhagavatula@marvell.com>
The struct rte_event_timer_adapter and rte_event_timer_adapter_data are
supposed to be used internally only, but there is a chance that
increasing their size would break ABI for some applications.
In order to allow smooth addition of features without breaking
ABI compatibility, reserve some space.
Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
---
lib/librte_eventdev/rte_event_timer_adapter.h | 5 +++++
lib/librte_eventdev/rte_event_timer_adapter_pmd.h | 5 +++++
2 files changed, 10 insertions(+)
@@ -529,6 +529,11 @@ struct rte_event_timer_adapter {
RTE_STD_C11
uint8_t allocated : 1;
/**< Flag to indicate that this adapter has been allocated */
+
+ uint64_t reserved_64s[4];
+ /**< Reserved for future fields */
+ void *reserved_ptrs[4];
+ /**< Reserved for future fields */
} __rte_cache_aligned;
#define ADAPTER_VALID_OR_ERR_RET(adapter, retval) do { \
@@ -105,6 +105,11 @@ struct rte_event_timer_adapter_data {
RTE_STD_C11
uint8_t started : 1;
/**< Flag to indicate adapter started. */
+
+ uint64_t reserved_64s[4];
+ /**< Reserved for future fields */
+ void *reserved_ptrs[4];
+ /**< Reserved for future fields */
} __rte_cache_aligned;
#ifdef __cplusplus