[PATCH v2 68/83] compress/isal: move alignment attribute on types
Tyler Retzlaff
roretzla at linux.microsoft.com
Mon Apr 15 22:04:30 CEST 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>
Acked-by: Morten Brørup <mb at smartsharesystems.com>
---
drivers/compress/isal/isal_compress_pmd_private.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/compress/isal/isal_compress_pmd_private.h b/drivers/compress/isal/isal_compress_pmd_private.h
index 46e9fcf..c713a5b 100644
--- a/drivers/compress/isal/isal_compress_pmd_private.h
+++ b/drivers/compress/isal/isal_compress_pmd_private.h
@@ -19,7 +19,7 @@ struct isal_comp_private {
};
/** ISA-L queue pair */
-struct isal_comp_qp {
+struct __rte_cache_aligned isal_comp_qp {
/* Queue Pair Identifier */
uint16_t id;
/* Unique Queue Pair Name */
@@ -34,17 +34,17 @@ struct isal_comp_qp {
struct inflate_state *state;
/* Number of free elements on ring */
uint16_t num_free_elements;
-} __rte_cache_aligned;
+};
/** ISA-L private xform structure */
-struct isal_priv_xform {
+struct __rte_cache_aligned isal_priv_xform {
enum rte_comp_xform_type type;
union {
struct rte_comp_compress_xform compress;
struct rte_comp_decompress_xform decompress;
};
uint32_t level_buffer_size;
-} __rte_cache_aligned;
+};
/** Set and validate NULL comp private xform parameters */
extern int
--
1.8.3.1
More information about the dev
mailing list