event/octeontx2: add Rx adapter
[dpdk.git] / drivers / crypto / caam_jr / caam_jr.c
index f647b36..77c0303 100644 (file)
@@ -70,7 +70,7 @@ static inline void
 caam_jr_op_ending(struct caam_jr_op_ctx *ctx)
 {
        PMD_INIT_FUNC_TRACE();
-       /* report op status to sym->op and then free the ctx memeory  */
+       /* report op status to sym->op and then free the ctx memory  */
        rte_mempool_put(ctx->ctx_pool, (void *)ctx);
 }
 
@@ -311,7 +311,7 @@ caam_jr_prep_cdb(struct caam_jr_session *ses)
        int32_t shared_desc_len = 0;
        struct sec_cdb *cdb;
        int err;
-#if RTE_BYTE_ORDER == RTE_BIG_ENDIAN
+#if CAAM_BYTE_ORDER == CORE_BYTE_ORDER
        int swap = false;
 #else
        int swap = true;
@@ -799,7 +799,7 @@ build_auth_only_sg(struct rte_crypto_op *op, struct caam_jr_session *ses)
                sg->len = cpu_to_caam32(ses->digest_length);
                length += ses->digest_length;
        } else {
-               length -= ses->digest_length;
+               sg->len -= ses->digest_length;
        }
 
        /* last element*/