Skip to contentSkip to conversation

crypto/octeontx2: fix structure alignment

PATCH Applied Tejasree Kondoj 3 participants 3 messages Jul 21, 2020 – Jul 26, 2020 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto/octeontx2: fix structure alignment

The structure cpt_request_info needs only 8 byte alignment. This patch replaces __rte_cache_aligned of cpt_request_info with __rte_aligned(8) and removes __rte_aligned(8) in cpt_meta_info structure.

Fixes fab634eb87ca ("crypto/octeontx2: support security session data path")
---
 drivers/common/cpt/cpt_common.h           | 2 +-
 drivers/crypto/octeontx2/otx2_cryptodev.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/common/cpt/cpt_common.h +1 -1
index 56bfea4953..0141b2aed5 100644
@@ -76,6 +76,6 @@ struct cpt_request_info {
 	/** Control path fields */
 	uint64_t time_out;
 	uint8_t extra_time;
-} __rte_cache_aligned;
+} __rte_aligned(8);
 
 #endif /* _CPT_COMMON_H_ */
drivers/crypto/octeontx2/otx2_cryptodev.h +1 -1
index f329741b38..a00f3d696e 100644
@@ -38,7 +38,7 @@ struct cpt_meta_info {
 	uint64_t deq_op_info[4];
 	uint64_t comp_code_sz;
 	union cpt_res_s cpt_res __rte_aligned(16);
-	struct cpt_request_info cpt_req __rte_aligned(8);
+	struct cpt_request_info cpt_req;
 };
 
 #define CPT_LOGTYPE otx2_cpt_logtype
Signature · 1 line
2.27.0
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines

The structure cpt_request_info needs only 8 byte alignment. This patch replaces __rte_cache_aligned of cpt_request_info with __rte_aligned(8) and removes __rte_aligned(8) in cpt_meta_info structure.

Fixes fab634eb87ca ("crypto/octeontx2: support security session data path")

Thanks Ferruh for pointing this out.

Applied
#2 lore raw
Quoted 5 lines
Quoted 5 lines

The structure cpt_request_info needs only 8 byte alignment. This patch replaces __rte_cache_aligned of cpt_request_info with __rte_aligned(8) and removes __rte_aligned(8) in cpt_meta_info structure.

Quoted 7 lines
Quoted 3 lines
Fixes fab634eb87ca ("crypto/octeontx2: support security session data path")

Thanks Ferruh for pointing this out.

Applied to dpdk-next-crypto

Thanks.