[dpdk-dev] [PATCH 04/20] crypto/cnxk: add symmetric crypto capabilities
Akhil Goyal
gakhil at marvell.com
Wed Jun 16 11:47:22 CEST 2021
> Subject: [PATCH 04/20] crypto/cnxk: add symmetric crypto capabilities
>
> From: Ankur Dwivedi <adwivedi at marvell.com>
>
> Add symmetric crypto capabilities for cn9k & cn10k.
>
Capability patch can also be added in the end along with documentation
update in the .ini files after the data path is added.
> +++ b/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c
> @@ -0,0 +1,755 @@
> +/* SPDX-License-Identifier: BSD-3-Clause
> + * Copyright(C) 2021 Marvell.
> + */
> +
> +#include <rte_cryptodev.h>
> +
> +#include "roc_api.h"
> +
> +#include "cnxk_cryptodev.h"
> +#include "cnxk_cryptodev_capabilities.h"
> +
> +#define CPT_CAPS_ADD(cnxk_caps, cur_pos, hw_caps, name) \
> + do { \
> + if ((hw_caps[CPT_ENG_TYPE_SE].name) || \
> + (hw_caps[CPT_ENG_TYPE_IE].name) || \
> + (hw_caps[CPT_ENG_TYPE_AE].name)) \
> + cpt_caps_add(cnxk_caps, cur_pos, caps_##name,
> \
> + RTE_DIM(caps_##name)); \
> + } while (0)
> +
> +static const struct rte_cryptodev_capabilities caps_mul[] = {
> + { /* RSA */
> + .op = RTE_CRYPTO_OP_TYPE_ASYMMETRIC,
Patch description says sym capabilities are added, but these are asym.
More information about the dev
mailing list