]> git.droids-corp.org - dpdk.git/blobdiff - drivers/crypto/cnxk/cn9k_cryptodev_ops.c
crypto/cnxk: add flexi cipher encryption
[dpdk.git] / drivers / crypto / cnxk / cn9k_cryptodev_ops.c
index 27076a856feab48ce2798894da299e2f28236448..62ad05c947a7031fc17de33a6f2cfec97cba337b 100644 (file)
@@ -17,13 +17,15 @@ cn9k_cpt_sym_inst_fill(struct cnxk_cpt_qp *qp, struct rte_crypto_op *op,
                       struct cpt_inflight_req *infl_req,
                       struct cpt_inst_s *inst)
 {
-       RTE_SET_USED(qp);
-       RTE_SET_USED(op);
-       RTE_SET_USED(sess);
-       RTE_SET_USED(infl_req);
-       RTE_SET_USED(inst);
+       uint64_t cpt_op;
+       int ret = -1;
 
-       return -ENOTSUP;
+       cpt_op = sess->cpt_op;
+
+       if (cpt_op & ROC_SE_OP_CIPHER_MASK)
+               ret = fill_fc_params(op, sess, &qp->meta_info, infl_req, inst);
+
+       return ret;
 }
 
 static inline struct cnxk_se_sess *