summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerin Jacob <jerinj@marvell.com>2019-11-08 22:26:03 +0530
committerThomas Monjalon <thomas@monjalon.net>2019-11-12 03:36:32 +0100
commit6f26f8a0ec4f9f85dd294ae96d38de0cf1d71791 (patch)
tree1f325fcef474c3bd1475e69ea57fc17211f64f59
parent0d20cda8a935d0df3c6e483422151705200907d0 (diff)
downloaddpdk-6f26f8a0ec4f9f85dd294ae96d38de0cf1d71791.zip
dpdk-6f26f8a0ec4f9f85dd294ae96d38de0cf1d71791.tar.gz
dpdk-6f26f8a0ec4f9f85dd294ae96d38de0cf1d71791.tar.xz
eventdev: reserve space in main structs for extension
The struct rte_eventdev and rte_eventdev_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, some space is reserved. Signed-off-by: Jerin Jacob <jerinj@marvell.com>
-rw-r--r--lib/librte_eventdev/rte_eventdev.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/librte_eventdev/rte_eventdev.h b/lib/librte_eventdev/rte_eventdev.h
index ced6f29..226f352 100644
--- a/lib/librte_eventdev/rte_eventdev.h
+++ b/lib/librte_eventdev/rte_eventdev.h
@@ -1282,6 +1282,9 @@ struct rte_eventdev_data {
char name[RTE_EVENTDEV_NAME_MAX_LEN];
/**< Unique identifier name */
+
+ uint64_t reserved_64s[4]; /**< Reserved for future fields */
+ void *reserved_ptrs[4]; /**< Reserved for future fields */
} __rte_cache_aligned;
/** @internal The data structure associated with each event device. */
@@ -1314,6 +1317,9 @@ struct rte_eventdev {
RTE_STD_C11
uint8_t attached : 1;
/**< Flag indicating the device is attached */
+
+ uint64_t reserved_64s[4]; /**< Reserved for future fields */
+ void *reserved_ptrs[4]; /**< Reserved for future fields */
} __rte_cache_aligned;
extern struct rte_eventdev *rte_eventdevs;