Signed-off-by: Jan Blunck <jblunck@infradead.org>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
cryptodev->data->socket_id = socket_id;
cryptodev->data->dev_started = 0;
+ /* init user callbacks */
+ TAILQ_INIT(&(cryptodev->link_intr_cbs));
+
cryptodev->attached = RTE_CRYPTODEV_ATTACHED;
cryptodev_globals.nb_devs++;
cryptodev->device = &vdev->device;
- /* initialise user call-back tail queue */
- TAILQ_INIT(&(cryptodev->link_intr_cbs));
-
return cryptodev;
}
cryptodev->device = &pci_dev->device;
- /* init user callbacks */
- TAILQ_INIT(&(cryptodev->link_intr_cbs));
-
/* Invoke PMD device initialization function */
RTE_FUNC_PTR_OR_ERR_RET(*dev_init, -EINVAL);
retval = dev_init(cryptodev);