> +/**
> + * Security vector structure, contains pointer to vector array and the length
> + * of the array
> + */
> +struct rte_security_vec {
> +     struct iovec *vec;
> +     uint32_t num;
> +};
> +
> +/**
> + * Processing bulk crypto workload with CPU
> + *
> + * @param    instance        security instance.
> + * @param    sess            security session
> + * @param    buf             array of buffer SGL vectors
> + * @param    iv              array of IV pointers
> + * @param    aad             array of AAD pointers
> + * @param    digest          array of digest pointers
> + * @param    status          array of status for the function to return


Need to specify what are expected status values.
I suppose zero for success, negative errno for some error happens?

> + * @param    num             number of elements in each array
> + *
> + */
> +__rte_experimental
> +void
> +rte_security_process_cpu_crypto_bulk(struct rte_security_ctx *instance,
> +             struct rte_security_session *sess,
> +             struct rte_security_vec buf[], void *iv[], void *aad[],
> +             void *digest[], int status[], uint32_t num);
> +
>  #ifdef __cplusplus
>  }
>  #endif

Reply via email to