[68/83] compress/isal: move alignment attribute on types

Message ID 1710949096-5786-69-git-send-email-roretzla@linux.microsoft.com (mailing list archive)
State Superseded
Delegated to: David Marchand
Headers
Series move alignment attribute on types |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Tyler Retzlaff March 20, 2024, 3:38 p.m. UTC
  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@linux.microsoft.com>
---
 drivers/compress/isal/isal_compress_pmd_private.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
  

Patch

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