1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(C) 2021 Marvell.
5 #include <rte_cryptodev.h>
9 #include "cnxk_cryptodev.h"
12 cnxk_cpt_default_ff_get(void)
14 uint64_t ff = RTE_CRYPTODEV_FF_SYMMETRIC_CRYPTO |
15 RTE_CRYPTODEV_FF_ASYMMETRIC_CRYPTO |
16 RTE_CRYPTODEV_FF_HW_ACCELERATED |
17 RTE_CRYPTODEV_FF_RSA_PRIV_OP_KEY_QT |
18 RTE_CRYPTODEV_FF_SYM_OPERATION_CHAINING |
19 RTE_CRYPTODEV_FF_IN_PLACE_SGL |
20 RTE_CRYPTODEV_FF_OOP_LB_IN_LB_OUT |
21 RTE_CRYPTODEV_FF_OOP_SGL_IN_LB_OUT |
22 RTE_CRYPTODEV_FF_OOP_SGL_IN_SGL_OUT |
23 RTE_CRYPTODEV_FF_SYM_SESSIONLESS |
24 RTE_CRYPTODEV_FF_DIGEST_ENCRYPTED |
25 RTE_CRYPTODEV_FF_SECURITY;
27 if (roc_model_is_cn10k())
28 ff |= RTE_CRYPTODEV_FF_SECURITY_INNER_CSUM;
34 cnxk_cpt_eng_grp_add(struct roc_cpt *roc_cpt)
38 ret = roc_cpt_eng_grp_add(roc_cpt, CPT_ENG_TYPE_SE);
40 plt_err("Could not add CPT SE engines");
44 ret = roc_cpt_eng_grp_add(roc_cpt, CPT_ENG_TYPE_IE);
46 plt_err("Could not add CPT IE engines");
50 ret = roc_cpt_eng_grp_add(roc_cpt, CPT_ENG_TYPE_AE);
52 plt_err("Could not add CPT AE engines");