[dpdk-dev] [EXT] [PATCH v8 03/16] crypto/mlx5: add session operations
Suanming Mou
suanmingm at nvidia.com
Tue Jul 20 10:59:06 CEST 2021
> -----Original Message-----
> From: Akhil Goyal <gakhil at marvell.com>
> Sent: Saturday, July 17, 2021 3:40 AM
> To: Shiri Kuzin <shirik at nvidia.com>; dev at dpdk.org
> Cc: Matan Azrad <matan at nvidia.com>; Suanming Mou
> <suanmingm at nvidia.com>; david.marchand at redhat.com
> Subject: RE: [EXT] [PATCH v8 03/16] crypto/mlx5: add session operations
> > doc/guides/cryptodevs/mlx5.rst | 10 ++
> > drivers/crypto/mlx5/mlx5_crypto.c | 172 +++++++++++++++++++++++-
> > 3 files changed, 182 insertions(+), 5 deletions(-)
> >
> > static const struct rte_driver mlx5_drv = { @@ -39,6 +68,49 @@ static
> > const struct rte_driver mlx5_drv = {
> >
> > static struct cryptodev_driver mlx5_cryptodev_driver;
> >
> > +struct mlx5_crypto_session {
> > + uint32_t bs_bpt_eo_es;
> > + /*
> > + * bsf_size, bsf_p_type, encryption_order and encryption standard,
> > + * saved in big endian format.
> > + */
>
> Normally the comments are added before the variable. Or add /**< for post
> comment.
Yes, you are right for the "normal" case, I think the main reason here is that all the mlx related PMDs are putting the comment after the variable, so in fact put the comments after the variable is the normal case for mlx PMDs.
Let's try to keep it in normal case to not make other mlx PMD familiar developers confusing.
>
> > + uint32_t bsp_res;
> > + /*
> > + * crypto_block_size_pointer and reserved 24 bits saved in big endian
> > + * format.
> > + */
> > + uint32_t iv_offset:16;
> > + /* Starting point for Initialisation Vector. */
> > + struct mlx5_crypto_dek *dek; /* Pointer to dek struct. */
> > + uint32_t dek_id; /* DEK ID */
> > +} __rte_packed;
> > +
> > --
> > 2.27.0
More information about the dev
mailing list