[4/5] crypto/cnxk: use unique cache line per inst
Checks
Commit Message
From: Anoob Joseph <anoobj@marvell.com>
CPT inflight request is used to track a request that is enqueued to
cryptodev. Having more than one inst use the same cacheline can result
in serialization of CPT result memory writes causing perf degradations.
Align inflight request to ROC cache line to ensure only one result would
be written per cache line..
Signed-off-by: Anoob Joseph <anoobj@marvell.com>
---
drivers/crypto/cnxk/cnxk_cryptodev_ops.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
@@ -40,7 +40,9 @@ struct cpt_inflight_req {
void *mdata;
uint8_t op_flags;
void *qp;
-} __rte_aligned(16);
+} __rte_aligned(ROC_ALIGN);
+
+PLT_STATIC_ASSERT(sizeof(struct cpt_inflight_req) == ROC_CACHE_LINE_SZ);
struct pending_queue {
/** Array of pending requests */