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: fab634eb87 ("crypto/octeontx2: support security session data path")

Signed-off-by: Tejasree Kondoj <ktejasree@marvell.com>
Acked-by: Anoob Joseph <anoobj@marvell.com>
This commit is contained in:
Tejasree Kondoj 2020-07-21 09:46:18 +05:30 committed by Akhil Goyal
parent 012affe138
commit 84d76227c6
2 changed files with 2 additions and 2 deletions

View file

@ -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_ */

View file

@ -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