[EXT] [PATCH resend v5 2/6] crypto/uadk: support basic operations

Akhil Goyal gakhil at marvell.com
Tue Oct 25 16:18:02 CEST 2022


> +/* Maximum length for digest (SHA-512 needs 64 bytes) */
> +#define DIGEST_LENGTH_MAX 64
> +
> +struct uadk_qp {
> +	/* Ring for placing process packets */
> +	struct rte_ring *processed_pkts;
> +	/* Queue pair statistics */
> +	struct rte_cryptodev_stats qp_stats;
> +	/* Queue Pair Identifier */
> +	uint16_t id;
> +	/* Unique Queue Pair Name */
> +	char name[RTE_CRYPTODEV_NAME_MAX_LEN];
> +	/* Buffer used to store the digest generated
> +	 * by the driver when verifying a digest provided
> +	 * by the user (using authentication verify operation)
> +	 */
> +	uint8_t temp_digest[DIGEST_LENGTH_MAX];
> +} __rte_cache_aligned;
> +

Same comment as on 1/6.
It is better to move the structure definitions in header file.



More information about the dev mailing list