> -----Original Message----- > From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Jan Blunck > Sent: Wednesday, July 12, 2017 9:00 AM > To: dev@dpdk.org > Cc: Doherty, Declan <declan.dohe...@intel.com> > Subject: [dpdk-dev] [PATCH 2/2] cryptodev: rework cryptodev PMD init to > not require rte_vdev.h > > This reworks the library code so that it doesn't require to include > rte_vdev.h. This is a preparation to move the vdev bus into a standalone > library. > > Signed-off-by: Jan Blunck <jblu...@infradead.org>
... > diff --git a/lib/librte_cryptodev/rte_cryptodev_vdev.h > b/lib/librte_cryptodev/rte_cryptodev_vdev.h > index 94ab9d33d..a877eed74 100644 > --- a/lib/librte_cryptodev/rte_cryptodev_vdev.h > +++ b/lib/librte_cryptodev/rte_cryptodev_vdev.h > @@ -33,7 +33,6 @@ > #ifndef _RTE_CRYPTODEV_VDEV_H_ > #define _RTE_CRYPTODEV_VDEV_H_ > > -#include <rte_vdev.h> > #include <inttypes.h> > > #include "rte_cryptodev.h" > @@ -72,15 +71,15 @@ struct rte_crypto_vdev_init_params { > * @param name PMD type name > * @param dev_private_size Size of crypto PMDs private data > * @param socket_id Socket to allocate resources on. > - * @param vdev Pointer to virtual device structure. > + * @param dev Pointer to device structure. > * > * @return > * - Cryptodev pointer if device is successfully created. > * - NULL if device cannot be created. > */ > struct rte_cryptodev * > -rte_cryptodev_vdev_pmd_init(const char *name, size_t dev_private_size, > - int socket_id, struct rte_vdev_device *vdev); > +rte_cryptodev_pmd_init(const char *name, size_t dev_private_size, > + int socket_id, struct rte_device *dev); Hi Jan, Even though now this function does not require the rte_vdev_device structure, I would still call it rte_cryptodev_vdev_pmd_init, as it is used for virtual crypto devices and not physical ones. The rest look ok to me. Thanks, Pablo