[PATCH 77/83] app/test-pipeline: move alignment attribute on types
Tyler Retzlaff
roretzla at linux.microsoft.com
Wed Mar 20 16:38:10 CET 2024
Move location of __rte_aligned(a) to new conventional location. The new
placement between {struct,union} and the tag allows the desired
alignment to be imparted on the type regardless of the toolchain being
used for both C and C++. Additionally, it avoids confusion by Doxygen
when generating documentation.
Signed-off-by: Tyler Retzlaff <roretzla at linux.microsoft.com>
---
app/test-pipeline/main.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/test-pipeline/main.h b/app/test-pipeline/main.h
index 9df157d..ee9c58a 100644
--- a/app/test-pipeline/main.h
+++ b/app/test-pipeline/main.h
@@ -18,7 +18,7 @@ struct app_mbuf_array {
#define APP_MAX_PORTS 4
#endif
-struct app_params {
+struct __rte_cache_aligned app_params {
/* CPU cores */
uint32_t core_rx;
uint32_t core_worker;
@@ -56,7 +56,7 @@ struct app_params {
/* App behavior */
uint32_t pipeline_type;
-} __rte_cache_aligned;
+};
extern struct app_params app;
--
1.8.3.1
More information about the dev
mailing list