cryptodev: store device pointer in virtual devices
[dpdk.git] / lib / librte_cryptodev / rte_cryptodev_pmd.h
index 356b9dc..ec4ca97 100644 (file)
@@ -57,14 +57,6 @@ extern "C" {
 #include "rte_crypto.h"
 #include "rte_cryptodev.h"
 
-
-#ifdef RTE_LIBRTE_CRYPTODEV_DEBUG
-#define RTE_PMD_DEBUG_TRACE(...) \
-       rte_pmd_debug_trace(__func__, __VA_ARGS__)
-#else
-#define RTE_PMD_DEBUG_TRACE(...)
-#endif
-
 struct rte_cryptodev_session {
        RTE_STD_C11
        struct {
@@ -470,6 +462,7 @@ rte_cryptodev_pmd_allocate(const char *name, int socket_id);
  * @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.
  *
  * @return
  *   - Cryptodev pointer if device is successfully created.
@@ -477,7 +470,7 @@ rte_cryptodev_pmd_allocate(const char *name, int socket_id);
  */
 struct rte_cryptodev *
 rte_cryptodev_pmd_virtual_dev_init(const char *name, size_t dev_private_size,
-               int socket_id);
+               int socket_id, struct rte_vdev_device *vdev);
 
 
 /**